[issue1580738] httplib hangs reading too much data

2007-10-17 Thread Facundo Batista
Facundo Batista added the comment: Fixed in rev 58530 (also added a test case) -- resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue1580738] httplib hangs reading too much data

2007-10-12 Thread Facundo Batista
Facundo Batista added the comment: Mark is ok, zero length responses are ok. But that has nothing to do with self.length. self.lenght reaching zero means that everything that needed to be read is already read. If the read() method is called without an argument, it reads everything until it reach

[issue1580738] httplib hangs reading too much data

2007-10-12 Thread Marcos Dione
Marcos Dione added the comment: with facundo we were tracking this bug down. mhammond is right about that read() should allow 0 size responses, but the bug is that the response is "not closed". HTTPResponse.read() says: if amt is None: # unbounded read if self.l