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

Submitted by:	cel@citi.umich.edu
This commit is contained in:
Jim Rees 2006-01-20 15:07:18 +00:00
parent 6c68d7b1ec
commit 4b81d0eb0f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154580

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