Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-35380: Enable TCP_NODELAY for proactor event loop #10867
Conversation
I'm a bit cautious (i.e. I'm +0) with backporting this to 3.7. Are you sure it's 100% safe? |
@@ -168,6 +168,17 @@ def _run_until_complete_cb(fut): | |||
futures._get_loop(fut).stop() | |||
|
|||
|
|||
if hasattr(socket, 'TCP_NODELAY'): |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asvetlov
Dec 3, 2018
Author
Contributor
sockutils.py
sounds great but in the case I doubt if the PR can be backported.
This comment has been minimized.
This comment has been minimized.
1st1
Dec 3, 2018
Member
Indeed, I suggest to do that in a follow up PR specifically for the master branch.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Yes, the change is safe: Windows supports TCP_NODELAY very well for any version, at least I used it on Win 2000 and XP. Without backport third parties like aiohttp should check for event loop type and enable the mode for proactor only, which looks very odd. |
This comment has been minimized.
This comment has been minimized.
SGTM |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 3, 2018
Thanks @asvetlov for the PR |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 3, 2018
@asvetlov: Please replace |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 3, 2018
GH-10872 is a backport of this pull request to the 3.7 branch. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 3, 2018
Sorry, @asvetlov, I could not cleanly backport this to |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 3, 2018
GH-10874 is a backport of this pull request to the 3.6 branch. |
asvetlov commentedDec 3, 2018
•
edited
Restore a consitensy with selector based event loops.
TCP_NODELAY is enabled starting from Python 3.6
https://bugs.python.org/issue35380