When I use the following command
netstat -ant | grep :9111 | awk '{print $6}' | sort | uniq -c | sort -n
I get the following
1 LAST_ACK
1 LISTEN
2 SYN_RECV
7 FIN_WAIT1
51 ESTABLISHED
71 FIN_WAIT2
8779 TIME_WAIT
I believe I understand TIME_WAIT meaning that I have closed the connection within my application and it is waiting some period of time in order to ensure the client has successfully closed the connection. Please correct me if I am wrong with that.
My question is surrounding keep alive requests. The vast majority of the traffic I am expecting to see should be keep alive.
- When would a keep alive connection enter the
TIME_WAITperiod? - Is it possible for a kep alive connection to go from
TIME_WAITtoESTABLISHED? If so, what are the conditions?
