]> git.sur5r.net Git - openldap/commitdiff
Don't log EAGAIN returns from ber_get_next()
authorHoward Chu <hyc@openldap.org>
Sun, 31 Dec 2006 16:15:45 +0000 (16:15 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 31 Dec 2006 16:15:45 +0000 (16:15 +0000)
servers/slapd/connection.c

index 40dbb8f62e362fb92add97d499fb19e43a55944f..df715e569fe7b327ddda97c8b95cc5f9801d0839 100644 (file)
@@ -1527,11 +1527,11 @@ connection_input( Connection *conn )
 
                ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_GET_FD, &sd );
 
-               Debug( LDAP_DEBUG_TRACE,
-                       "ber_get_next on fd %d failed errno=%d (%s)\n",
-                       sd, err, sock_errstr(err) );
                if ( err != EWOULDBLOCK && err != EAGAIN ) {
                        /* log, close and send error */
+                       Debug( LDAP_DEBUG_TRACE,
+                               "ber_get_next on fd %d failed errno=%d (%s)\n",
+                       sd, err, sock_errstr(err) );
                        ber_free( conn->c_currentber, 1 );
                        conn->c_currentber = NULL;