Skip to content

Conversation

@kylestanfield
Copy link
Contributor

Add no_delay and no_cork options to help allow tcp_stream to send small packets

no_delay -- disable Nagle's algorithm on data sockets

no_cork -- If set, do not use MSG_MORE flag when sending with tcp_stream

MSG_MORE logic in tcp_stream was not upstreamed yet so I added the line to set the flag if no_cork is not used.

When used together, tcp_stream won't coalesce small writes into larger packets.

@kylestanfield
Copy link
Contributor Author

Thanks for your comments. Fixed all the spacing issues. Had the wrong settings in my .vimrc :-)

@hi-rajat-kumar hi-rajat-kumar merged commit 0735a76 into google:master Sep 30, 2025
1 check passed
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