]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9820 fix writewait/idletimeout interaction
authorHoward Chu <hyc@openldap.org>
Tue, 12 Apr 2022 16:28:11 +0000 (17:28 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 27 Apr 2022 15:47:49 +0000 (15:47 +0000)
Since 88d22a1ca3b28e10e6557e8aebbd75dd61fed511 the writewait check
was moved out of connections_timeout_idle() but the connection loop
was still testing the writewait flag. That test is no longer relevant.

servers/slapd/connection.c

index 44ec5b42e12a42403d45d3a108b9a9983bc88764..e2f3a811ed4825394ca88ae300f5596c56b7932e 100644 (file)
@@ -212,7 +212,7 @@ int connections_timeout_idle(time_t now)
                /* Don't timeout a slow-running request or a persistent
                 * outbound connection.
                 */
-               if((( c->c_n_ops_executing || c->c_n_ops_async ) && !c->c_writewaiter)
+               if( c->c_n_ops_executing || c->c_n_ops_async
                        || c->c_conn_state == SLAP_C_CLIENT ) {
                        continue;
                }
@@ -244,7 +244,7 @@ void connections_drop()
                /* Don't close a slow-running request or a persistent
                 * outbound connection.
                 */
-               if((( c->c_n_ops_executing || c->c_n_ops_async ) && !c->c_writewaiter)
+               if( c->c_n_ops_executing || c->c_n_ops_async
                        || c->c_conn_state == SLAP_C_CLIENT ) {
                        continue;
                }