2013. 12. 23.

remove FIN_WAIT_2 from connection ( windows) by JAVA


when close socket at server side. although socket.close is called  FIN_WAIT_2 is not disappeared.

c:\netstat -an |find "FIN_WAIT_2"

  TCP    127.0.0.1:1234         127.0.0.1:61234        FIN_WAIT_2
  TCP    127.0.0.1:61234        127.0.0.1:1234         CLOSE_WAIT



In your code,

you must call this function before close socket.

setSoLinger(true, 2000); 
Enhanced by Zemanta

댓글 없음:

댓글 쓰기