7/20/2010

TCP’s 11 states




#netstat -an
stat
FIN_WAIT2 is a state when the server closes the socket on its side but
does not receive an acknowledgement of the close from the client. Does
your application open and close a lot of connections? When you close on
the client side do you use the Connection.close() method?
CLOSE_WAIT state means the other end of the connection has been closed while the local end is still waiting for the app to close.

/proc/sys/net/ipv4/* Variables:

Changing Some TCP Parameters
Sample
% cat /proc/sys/net/ipv4/tcp_fin_timeout
60
[To change this to 3 seconds]
# echo "3" > /proc/sys/net/ipv4/tcp_fin_timeout