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);
댓글 없음:
댓글 쓰기