mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-20 13:53:21 -05:00
ITS#2389 - stop reading requests on a connection when we are blocked
writing responses. This may not be the right fix.
This commit is contained in:
parent
062f54d1cc
commit
546d5cb3a0
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue