-
Notifications
You must be signed in to change notification settings - Fork 504
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
How to close socket when socket idle ? #1133
Comments
@dang cc |
You shouldn't need to set anything, just call SVC_DESTROY(). By default, TCP sockets are closed when the xprt is destroyed. |
Thanks a lot, I will try it. |
@liyinshubyte /close as resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ffilz Hi, when the bug happens nfs-ganesha/ntirpc#294. Our nfs client hang, and client will not send any message to server. So when socket idle, we want to close socket in nfs-ganesha, and client will recover from hang. we only make this change in our company, and will not submit merge request to community to avoid bug. But I don't know how to close socket, because if I call SVC_DESTROY, I need to set xprt.xp_flags, not sure it's right or not. Could you give me some suggestions about how to close socket ?
The text was updated successfully, but these errors were encountered: