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:
maxim 2005-12-15 18:10:37 +00:00
parent bb17c1e410
commit b08fccbd06

View File

@ -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);