]> git.sur5r.net Git - openldap/commitdiff
ITS#2389 - stop reading requests on a connection when we are blocked
authorHoward Chu <hyc@openldap.org>
Thu, 20 Mar 2003 11:54:17 +0000 (11:54 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 20 Mar 2003 11:54:17 +0000 (11:54 +0000)
writing responses. This may not be the right fix.

servers/slapd/result.c

index 2e412aeb5f52eb1f6e14629d3ca1187446f98f2b..b5c5082c5deb3f50e55fe34e9d4540b561ffc825 100644 (file)
@@ -174,6 +174,8 @@ static long send_ldap_ber(
                /* wait for socket to be write-ready */
                conn->c_writewaiter = 1;
                ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_GET_FD, &sd );
+               /* Don't process any more requests until we can reply */
+               slapd_clr_read( sd, 0 );
                slapd_set_write( sd, 1 );
 
                ldap_pvt_thread_cond_wait( &conn->c_write_cv, &conn->c_mutex );