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:
parent
6c68d7b1ec
commit
4b81d0eb0f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user