If I were to create a TCP socket with the TCP_NODELAY
option enabled and use it to listen
for new connections, would new sockets returned by accept
also have TCP_NODELAY
enabled?
Different sockets can have differently configured options, though it would make sense that sockets returned by accept
inherit their options from the listening socket that spawned them. Is this implementation-dependent?
Yes, TCP_NODELAY
on a listening socket is inherited by accepted sockets. Tested on Linux 4.18.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With