Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3: http.client.HTTPResponse reads too much
The Python 3.6 documentation for HTTPConnection.get_response() has this note: Note that you must have read the whole response before you can send a new request to the server. As far as I understand, the problem is that HTTPResponse() wraps the raw socket object in a buffered reader that reads ahead, so the first response object gets all of the pipelined responses into the buffer of the socket wrapper that is discarded and not passed over to subsequent responses.
- Loading branch information