MFC rev 1.135:

Don't log an error on tcp connection reset, even if we don't get ECONNRESET.

Submitted by:	cel@citi.umich.edu
Approved by:	re (scottl)
This commit is contained in:
rees 2006-02-16 02:39:52 +00:00
parent e776a57c39
commit 24c9cc5118

View File

@ -808,7 +808,7 @@ nfs_clnt_tcp_soupcall(struct socket *so, void *arg, int waitflag)
* connection.
*/
if (error || auio.uio_resid > 0) {
if (error != ECONNRESET) {
if (error && error != ECONNRESET) {
log(LOG_ERR,
"nfs/tcp clnt: Error %d reading socket, tearing down TCP connection\n",
error);
@ -852,7 +852,7 @@ nfs_clnt_tcp_soupcall(struct socket *so, void *arg, int waitflag)
(so, (struct sockaddr **)0,
&auio, &mp, (struct mbuf **)0, &rcvflg);
if (error || auio.uio_resid > 0) {
if (error != ECONNRESET) {
if (error && error != ECONNRESET) {
log(LOG_ERR,
"nfs/tcp clnt: Error %d reading socket, tearing down TCP connection\n",
error);