We should expose the hyper set_nodelay option as a config option for the transport channel and server.
Hi,
I've made a PR #120 once I learned that my problem with abnormal latencies was caused by tokio defaulting to non-TCP_NODELAY sockets.
I did not make TCP_NODELAY a configuration option, though. It is required for services that exchange small requests, and adds no overhead in services that exchange bigger messages. I believe it makes sense to enable TCP_NODELAY unconditionally.
Most helpful comment
Hi,
I've made a PR #120 once I learned that my problem with abnormal latencies was caused by tokio defaulting to non-TCP_NODELAY sockets.
I did not make TCP_NODELAY a configuration option, though. It is required for services that exchange small requests, and adds no overhead in services that exchange bigger messages. I believe it makes sense to enable TCP_NODELAY unconditionally.