logoalt Hacker News

wyldfiretoday at 7:30 AM1 replyview on HN

Nagle's algorithm is just a special case of TCP worst case latency. Packet loss and congestion also cause significant latency.

If you care about latency, you should consider something datagram oriented like UDP or SCTP.


Replies

mort96today at 9:36 AM

What if occasional latency is fine, and latency on terrible networks with high packet loss is fine, but you want the happy case to have little latency? Both many (non-competitive) games and SSH falls into this: reliability is more important than achieving the absolute lowest latency possible, but lower latency is still better than higher latency.