How do I remove a CLOSE_WAIT socket connection

后端 未结 7 882
庸人自扰
庸人自扰 2020-12-04 05:38

I have written a small program that interacts with a server on a specific port. The program works fine, but:

Once the program terminated unexpectedly, and ever since

相关标签:
7条回答
  • 2020-12-04 06:10

    It should be mentioned that the Socket instance in both client and the server end needs to explicitly invoke close(). If only one of the ends invokes close() then too, the socket will remain in CLOSE_WAIT state.

    0 讨论(0)
提交回复
热议问题