From: Ondřej Kuzník Date: Fri, 8 Jan 2021 11:33:24 +0000 (-0600) Subject: ITS#8747 Do not continue reading if connection is dying X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a186fd70abd3cd78da2a66737fda45c32d6f07eb;p=thirdparty%2Fopenldap.git ITS#8747 Do not continue reading if connection is dying --- diff --git a/servers/lloadd/connection.c b/servers/lloadd/connection.c index fd1527f3e3..5644138882 100644 --- a/servers/lloadd/connection.c +++ b/servers/lloadd/connection.c @@ -86,6 +86,10 @@ handle_pdus( void *ctx, void *arg ) goto done; } + if ( !IS_ALIVE( c, c_live ) ) { + break; + } + if ( ++pdus_handled >= lload_conn_max_pdus_per_cycle ) { /* Do not read now, re-enable read event instead */ break;