lambdamoo icon indicating copy to clipboard operation
lambdamoo copied to clipboard

Enable keepalive on TCP connections

Open luke-jr opened this issue 13 years ago • 1 comments

This helps a lot.

luke-jr avatar Nov 20 '11 06:11 luke-jr

Is there something in particular that this helps with?

Seems like it should be an option and probably a connection option, not just a server option. The problem is keep-alive does cause connections to get dropped when they otherwise wouldn't, i.e., if there's a temporary network outage during which nothing's actually getting transmitted on a connection a keep-alive during that outage would kill the connection, whereas without the keep-aliave if the network came back before any actual packets get sent, it'll be as if there'd never been an outage. And it seems like this would particularly be a problem for places like LambdaMOO where people typically stay idle for very long periods of time.

Should probably also have a way to mess with tcp_keepalive_time and tcp_keepalive_intvl (default for tcp_keepalive_time on my system is 2 hours, which I suspect would make it useless for any application that doesn't customize)

wrog avatar Apr 02 '13 23:04 wrog