且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java.net.SocketException: 套接字已关闭 TCP 客户端服务器通信

更新时间:2022-06-24 07:47:16

套接字关闭"异常意味着捕获异常的应用程序关闭了套接字,然后继续尝试使用它.您可能不知道关闭套接字的输入或输出流也会关闭另一个流和套接字.对于软件导致的连接中止",请参阅重复链接.

A 'Socket closed' exception means that the application that caught the exception closed the socket and then kept trying to use it. You may be unaware that closing the input or output stream of a socket closes the other stream and the socket as well. For 'software caused connection abort' see the duplicate link.