Whamcloud - gitweb
b=18844
[fs/lustre-release.git] / lnet / ulnds / socklnd / handlers.c
index e9eda46..521e5b2 100644 (file)
@@ -1000,7 +1000,8 @@ usocklnd_read_data(usock_conn_t *conn)
                 nob = libcfs_sock_readv(conn->uc_sock,
                                         conn->uc_rx_iov, conn->uc_rx_niov);
                 if (nob <= 0) {/* read nothing or error */
-                        conn->uc_errored = 1;
+                        if (nob < 0)
+                                conn->uc_errored = 1;
                         return nob;
                 }