-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module #70461
Comments
The socket module is missing a couple of TCP socket options: TCP_CONGESTION was added to Linux in v2.6.13 and TCP_USER_TIMEOUT was added in v2.6.37. These should be exposed. |
Is there any issue in merging this? TCP_USER_TIMEOUT is quite useful, for automatic failover of connections that suddenly died. |
+1 for this. The patch looks fine, and there's no need to add any documentation or tests. |
New changeset 674fb9644eaa by Victor Stinner in branch 'default': |
Sorry, I missed this issue. TCP_USER_TIMEOUT is super useful! It helps a lot to detect when a server is down, especially when using keep alive: at kernel level (TCP keepalive) or application level (ex: RabbitMQ heart beat). Linux default timeout is more something like 15 minutes. A few years ago, it was longer than 2 days :-) |
Le 29/11/2016 à 16:59, STINNER Victor a écrit :
It is :-) |
Glad to see this finally get in :) |
Shouldn't we add something like versionadded/versionchanged or a mentioning in What's New? |
Would be nice to have in 3.6. |
OK for 3.6.0rc1 (before it times out) |
New changeset 6d69da76be6a by Victor Stinner in branch '3.6': |
Serhiy Storchaka: "Shouldn't we add something like versionadded/versionchanged or a mentioning in What's New?" Oh right, we did that for other new constants added to Python 3.6 like SO_DOMAIN. Attached socket_doc.patch documents the additional of the two new constants. It seems like "hg transplant" putted the NEWS entry in the wrong section :-/ The patch also fixes that. |
Patch looks good to me. BTW in bpo-27409 I proposed a patch listing more of these. |
New changeset ffb2534fcbf1 by Victor Stinner in branch '3.6': |
Oh, I forgot socket_doc.patch! Thanks Serhiy for the reminder and Martin for the review :-) I just pushed the patch. |
Misc/NEWS
so that it is managed by towncrier #552Note: 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: