From: Howard Chu Date: Sun, 31 Dec 2006 16:15:45 +0000 (+0000) Subject: Don't log EAGAIN returns from ber_get_next() X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~290 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff93c6bef79680f515a9e7a62db74a7879af0b43;p=openldap Don't log EAGAIN returns from ber_get_next() --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 40dbb8f62e..df715e569f 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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;