[Patches] [ python-Patches-988642 ] Update HTTPRespnse.length
SourceForge.net
noreply at sourceforge.net
Thu Sep 2 15:15:46 CEST 2004
Patches item #988642, was opened at 2004-07-10 21:16
Message generated for change (Comment added) made by jhylton
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: Jeremy Hylton (jhylton)
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: Jeremy Hylton (jhylton)
Date: 2004-09-02 13:15
Message:
Logged In: YES
user_id=31392
I will take a look.
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2004-08-07 20:59
Message:
Logged In: YES
user_id=11375
Jeremy, you know about HTTP stuff, right?
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2004-07-10 22: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