-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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 #189
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
期待加个类,正确的关闭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: