[Patches] [ python-Patches-988642 ] Update HTTPRespnse.length

SourceForge.net noreply at sourceforge.net
Sat Aug 7 22:59:34 CEST 2004


Patches item #988642, was opened at 2004-07-10 17:16
Message generated for change (Comment added) made by akuchling
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: A.M. Kuchling (akuchling)
Date: 2004-08-07 16: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 18: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