From 546d5cb3a0f8cdb69d61ac3a19694bfb8b873790 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 20 Mar 2003 11:54:17 +0000 Subject: [PATCH] ITS#2389 - stop reading requests on a connection when we are blocked writing responses. This may not be the right fix. --- servers/slapd/result.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.39.5