Fix for Bug #215426 in which bzr can cause a MemoryError in socket.recv while downloading large packs over http. This patch limits the request size for socket.recv to avoid this problem.
Changes: Added mock file object bzrlib.tests.file_utils. Added new parameters to bzrlib.osutils.pumpfile. Added unit tests for bzrlib.osutils.pumpfile. Added usage of bzrlib.osutils.pumpfile to bzrlib.transport.http.response.