Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
664553a7
Commit
664553a7
authored
Feb 23, 2008
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1389051, #1092502: fix excessively large allocations when using read() on a socket
parent
37d4f7bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/socket.py
Lib/socket.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/socket.py
View file @
664553a7
...
@@ -305,7 +305,7 @@ class _fileobject(object):
...
@@ -305,7 +305,7 @@ class _fileobject(object):
self
.
_rbuf
=
""
self
.
_rbuf
=
""
while
True
:
while
True
:
left
=
size
-
buf_len
left
=
size
-
buf_len
recv_size
=
m
ax
(
self
.
_rbufsize
,
left
)
recv_size
=
m
in
(
self
.
_rbufsize
,
left
)
data
=
self
.
_sock
.
recv
(
recv_size
)
data
=
self
.
_sock
.
recv
(
recv_size
)
if
not
data
:
if
not
data
:
break
break
...
...
Misc/NEWS
View file @
664553a7
...
@@ -18,6 +18,9 @@ Library
...
@@ -18,6 +18,9 @@ Library
- Bug #1389051: imaplib causes excessive memory fragmentation when reading
- Bug #1389051: imaplib causes excessive memory fragmentation when reading
large messages.
large messages.
- Bug #1389051, 1092502: fix excessively large memory allocations when
calling .read() on a socket object wrapped with makefile().
- Bug #1433694: minidom'
s
.
normalize
()
failed
to
set
.
nextSibling
for
- Bug #1433694: minidom'
s
.
normalize
()
failed
to
set
.
nextSibling
for
last
child
element
.
last
child
element
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment