This happens when you write to a TCP connection that has already been closed by the reading end. Depending on your application, you would either treat it as an application protocol error or ignore it and give up. In either case the socket is almost certainly dead and must be closed, and the client session abandoned.
Reference:
http://forums.sun.com/thread.jspa?threadID=5218565
http://www.flukenetworks.com/fnet/en-us/supportAndDownloads/KB/IT%20Networking/protocol%20expert/What_are_TCP_RST_Packets_-_Protocol_Expert
java.net.SocketException: Broken pipe
最新推荐文章于 2023-06-20 17:58:07 发布
本文讨论了当尝试向已关闭的TCP连接写入数据时可能遇到的问题。这种情况通常被视为应用程序协议错误,建议的做法是忽略该错误并放弃当前的socket连接,同时结束客户端会话。
2518

被折叠的 条评论
为什么被折叠?



