You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the only changes required would be in HTTPConnectionPool._make_request, passing buffering=True to the getresponse() call on Python 2.7 and later.
urllib2.py does the following:
try:
r=h.getresponse(buffering=True)
exceptTypeError: #buffering kw not supportedr=h.getresponse()
The text was updated successfully, but these errors were encountered:
Python 2.7 has added support for buffering when reading from HTTP connections, which leads to a significant improvement in HTTP client performance.
See: http://bugs.python.org/issue4879
It looks like the only changes required would be in HTTPConnectionPool._make_request, passing buffering=True to the getresponse() call on Python 2.7 and later.
urllib2.py does the following:
The text was updated successfully, but these errors were encountered: