~ubuntu-branches/ubuntu/hardy/python2.5/hardy

« back to all changes in this revision

Viewing changes to debian/patches/svn-updates.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-04-08 23:27:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080408232723-1nkj1vg2pt19ct0k
Tags: 2.5.2-2ubuntu3
Fix urllib2 file descriptor happens byte-at-a-time, reverting
a fix for excessively large memory allocations when calling .read()
on a socket object wrapped with makefile(). LP: #214183.

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
===================================================================
264
264
--- Misc/NEWS   (.../tags/r252) (revision 61352)
265
265
+++ Misc/NEWS   (.../branches/release25-maint)  (revision 61352)
266
 
@@ -4,6 +4,51 @@
 
266
@@ -4,6 +4,48 @@
267
267
 
268
268
 (editors: check NEWS.help for information about editing NEWS using ReST.)
269
269
 
286
286
+- Bug #1389051: imaplib causes excessive memory fragmentation when reading
287
287
+  large messages.
288
288
+
289
 
+- Bug #1389051, 1092502: fix excessively large memory allocations when
290
 
+  calling .read() on a socket object wrapped with makefile(). 
291
 
+
292
289
+- Bug #1433694: minidom's .normalize() failed to set .nextSibling for
293
290
+  last child element.
294
291
+
386
383
 
387
384
 
388
385
     def write_manifest (self):
389
 
Index: Lib/socket.py
390
 
===================================================================
391
 
--- Lib/socket.py       (.../tags/r252) (revision 61352)
392
 
+++ Lib/socket.py       (.../branches/release25-maint)  (revision 61352)
393
 
@@ -305,7 +305,7 @@
394
 
             self._rbuf = ""
395
 
             while True:
396
 
                 left = size - buf_len
397
 
-                recv_size = max(self._rbufsize, left)
398
 
+                recv_size = min(self._rbufsize, left)
399
 
                 data = self._sock.recv(recv_size)
400
 
                 if not data:
401
 
                     break
402
386
Index: Lib/test/test_itertools.py
403
387
===================================================================
404
388
--- Lib/test/test_itertools.py  (.../tags/r252) (revision 61352)