Top Nav

Reduce TCP WAIT Times

Interesting discussion here:

Especially, this section:

Default Sysctl values on a typical linux box for tcp_tw_recycle & tcp_tw_reuse would be

These do not allow a connection in wait state after use, and force them to last the complete time_wait cycle. I recommend setting them to:

This allows fast cycling of sockets in time_wait state and re-using them. But before you do this change make sure that this does not conflict with the protocols that you would use for the application that needs these sockets.

Some other references: