-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow buffering for HTTPResponse #49129
Comments
This is related to bpo-4336. While that issue finally revolved around |
Why not name the parameter buffering=False rather than nobuffer=True? |
Yes, if you think so. But my intention was to indicate that But either way is fine, and I'll be happy to change it. |
Checked in as revision: 68532 |
Kristján, could you merge this change into the Py3k branch, please? |
Adding crossref to http://bugs.python.org/issue4448 regarding the |
Checked in r69209 to py3k |
This causes failures in test_urllib2net. The fix is easy: a handful of
+ self.assertTrue(u.fp.raw._sock.gettimeout() is None) But doesn't this show a backward-incompatible change? |
The socket.socket.makefile() now returns a quite different kind of As for the test failure, I admit that I didn't enable the "network" Btw, test_xmlrpc_net.py fails, because time.xmlrpc.com doesn't |
I'm afraid I misunderstood the problem. But looking at the other assertions in test_urllib2net.py, you can see IMHO I think we have to assume the _sock member to be an implementation |
I believe there will be a problem with the patch committed in r68532. I mentioned this in comments on http://bugs.python.org/issue2576 which |
trunk r74463 now forces the HTTPResponse to close afterwards when |
And that update causes failures in test_xmlrpc. |
I think I'll open a new ticket instead. |
Gregory, please revert your change (74463). Your change has disabled the HTTP/1.1 keepalive capability, causing If you think there are problems, you a new defect should be created. |
Already reverted in r74522 | gregory.p.smith | 2009-08-18 22:33:48 -0700 (Tue, 18 Aug 2009) for that reason. |
Opened bpo-23377 for the problem of dropping extra buffered data at the end of a response. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: