[issue26231] HTTPResponse.close() should consume all remaining data in body if any

2016-01-28 Thread Jacky
Jacky added the comment: 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

[issue26231] HTTPResponse.close() should consume all remaining data in body if any

2016-01-28 Thread Jacky
New submission from Jacky: HTTPResponse.close() in httplib should consume all remaining data in body if any. Or the followed request would get the unread content from the previous request, which result in the wrong result. The following code shown that the second request will get a wrong