Skip to content
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

chore(server): Set nodelay and tcp timeout on constructing TcpIncoming #2033

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tottoto
Copy link
Collaborator

@tottoto tottoto commented Nov 2, 2024

Sets nodelay and tcp timeout on constructing TcpIncoming.

@tottoto tottoto force-pushed the set-nodelay-and-tcp-timeout-on-constructing-tcpincoming branch from e8f057d to 30ea9ec Compare November 5, 2024 11:26
@tottoto tottoto force-pushed the set-nodelay-and-tcp-timeout-on-constructing-tcpincoming branch from 30ea9ec to 6e8af8b Compare November 6, 2024 14:12
Copy link
Collaborator

@tobz tobz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is a good idea.

I know some socket options can be set on a listener and will be inherited by the accepted sockets, but I couldn't find anything in the POSIX specification that implies that they should always be inherited, or which ones should be inherited.

Unless you have a reference that demonstrates this as a stable, long-term behavior (on the major operating systems, such as Linux and Windows), I think we should leave it as-is.

@tottoto tottoto marked this pull request as draft November 16, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants