[Patches] [ python-Patches-988642 ] Update HTTPRespnse.length
SourceForge.net
noreply at sourceforge.net
Sun Jul 11 00:36:33 CEST 2004
Patches item #988642, was opened at 2004-07-10 22:16
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=988642&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: John Ehresman (jpe)
Assigned to: Nobody/Anonymous (nobody)
Summary: Update HTTPRespnse.length
Initial Comment:
Update length attribute correctly when read() returns
less than the expected number of bytes. Addresses bug
# 988120
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2004-07-10 23:36
Message:
Logged In: YES
user_id=261020
Patch basically looks good, but I'm worrying about the bit
of code in the current httplib.py, in the block commented
with '# unbounded read'.
Why the switch on .will_close? Shouldn't the switch be on
(self.length is None), instead? I could well be missing
something, but this looks like another bug of the same kind
as in the original report.
Also, how about the various .readline() calls? Might they
also return less than a full line?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=988642&group_id=5470
More information about the Patches
mailing list