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 Jacky
Recipients Jacky, martin.panter
Date 2016-01-28.13:19:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453987195.52.0.579852108176.issue26231@psf.upfronthosting.co.za>
In-reply-to
Content
In my opinion, HTTPResponse.close() should do really close work. Not only releasing the underlying file obj but also need to consume the remaining data to make sure the request complete.

If close() does not consume the remaining data, the user would have to do it after invoking close(), regardless of how large the data is. But how do do it, the HTTPResponse has been closed. So we have to use HTTPConnection.sock to do read work. However, this looks somewhat weird.
History
Date User Action Args
2016-01-28 13:19:55Jackysetrecipients: + Jacky, martin.panter
2016-01-28 13:19:55Jackysetmessageid: <1453987195.52.0.579852108176.issue26231@psf.upfronthosting.co.za>
2016-01-28 13:19:55Jackylinkissue26231 messages
2016-01-28 13:19:55Jackycreate