From: Howard Chu Date: Thu, 20 Mar 2003 11:54:17 +0000 (+0000) Subject: ITS#2389 - stop reading requests on a connection when we are blocked X-Git-Tag: NO_SLAP_OP_BLOCKS~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=546d5cb3a0f8cdb69d61ac3a19694bfb8b873790;p=openldap ITS#2389 - stop reading requests on a connection when we are blocked writing responses. This may not be the right fix. --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 2e412aeb5f..b5c5082c5d 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -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 );