We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
期待加个类,正确的关闭client Socket
直接调用java.net.Socket#close(),会导致服务端报:java.net.SocketException: Connection reset
java.net.Socket#close()
java.net.SocketException: Connection reset
原因是close会先发FIN,再发RST,客户端没有等待服务端的FIN
相关链接:https://docs.oracle.com/javase/8/docs/technotes/guides/net/articles/connection_release.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
期待加个类,正确的关闭client Socket
直接调用
java.net.Socket#close()
,会导致服务端报:java.net.SocketException: Connection reset
原因是close会先发FIN,再发RST,客户端没有等待服务端的FIN
相关链接:https://docs.oracle.com/javase/8/docs/technotes/guides/net/articles/connection_release.html
The text was updated successfully, but these errors were encountered: