FreeBSD Bugzilla – Attachment 223621 Details for
Bug 254590
NFSv4.1 mounts from the Linux client gets "stuck" with partially closed TCP connection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add soshutdown() calls to server side krpc for non-functional TCP conn
xprtdied.patch (text/plain), 802 bytes, created by
Rick Macklem
on 2021-03-26 21:01:29 UTC
(
hide
)
Description:
add soshutdown() calls to server side krpc for non-functional TCP conn
Filename:
MIME Type:
Creator:
Rick Macklem
Created:
2021-03-26 21:01:29 UTC
Size:
802 bytes
patch
obsolete
>--- sys/rpc/svc.c.xprtdied 2021-03-20 13:36:50.798335000 -0700 >+++ sys/rpc/svc.c 2021-03-20 17:30:41.448270000 -0700 >@@ -203,6 +203,8 @@ svcpool_cleanup(SVCPOOL *pool) > mtx_unlock(&grp->sg_lock); > } > TAILQ_FOREACH_SAFE(xprt, &cleanup, xp_link, nxprt) { >+ if (xprt->xp_socket != NULL) >+ soshutdown(xprt->xp_socket, SHUT_WR); > SVC_RELEASE(xprt); > } > >@@ -388,6 +390,8 @@ xprt_unregister(SVCXPRT *xprt) > xprt_unregister_locked(xprt); > mtx_unlock(&grp->sg_lock); > >+ if (xprt->xp_socket != NULL) >+ soshutdown(xprt->xp_socket, SHUT_WR); > SVC_RELEASE(xprt); > } > >@@ -1078,6 +1082,7 @@ svc_checkidle(SVCGROUP *grp) > > mtx_unlock(&grp->sg_lock); > TAILQ_FOREACH_SAFE(xprt, &cleanup, xp_link, nxprt) { >+ soshutdown(xprt->xp_socket, SHUT_WR); > SVC_RELEASE(xprt); > } > mtx_lock(&grp->sg_lock);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 254590
: 223621 |
223815
|
223831