This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jjlee
Recipients jjlee
Date 2008-12-02.18:15:18
SpamBayes Score 1.5147914e-05
Marked as misclassified No
Message-id <1228241719.92.0.946688230988.issue4492@psf.upfronthosting.co.za>
In-reply-to
Content
The fix for #900744 tried to close the connection when a bad chunk
length was received.  The comment inserted with that fix "close the
connection as protocol synchronisation is probably lost" is incorrect:
self.close() in _read_chunked does not close the connection.  You have
to call HTTPConnection.close() to close the connection.

So:

 * The comment is incorrect, and should be removed or fixed.  I guess
the self.close() should stay.

 * It's probably a bug that it doesn't result in the connection being
closed.  I guess a fix for that would be for the HTTPResponse to set
some state on itself that HTTPConnection can query so that
HTTPConnection can close itself the next time somebody tries to do
something with the connection.
History
Date User Action Args
2008-12-02 18:15:20jjleesetrecipients: + jjlee
2008-12-02 18:15:19jjleesetmessageid: <1228241719.92.0.946688230988.issue4492@psf.upfronthosting.co.za>
2008-12-02 18:15:19jjleelinkissue4492 messages
2008-12-02 18:15:18jjleecreate