MFC rev. 1.134: fix for a bug where NFS/TCP would
not reconnect (in the case where the server FIN'ed). PR: kern/88833 Requested by: Roman V. Palagin Approved by: Mohan Strinivasan
This commit is contained in:
parent
bb17c1e410
commit
b08fccbd06
@ -756,7 +756,7 @@ nfstcp_readable(struct socket *so, int bytes)
|
||||
|
||||
SOCKBUF_LOCK(&so->so_rcv);
|
||||
retval = (so->so_rcv.sb_cc >= (bytes) ||
|
||||
(so->so_state & SBS_CANTRCVMORE) ||
|
||||
(so->so_rcv.sb_state & SBS_CANTRCVMORE) ||
|
||||
so->so_error);
|
||||
SOCKBUF_UNLOCK(&so->so_rcv);
|
||||
return (retval);
|
||||
|
Loading…
x
Reference in New Issue
Block a user