From a186fd70abd3cd78da2a66737fda45c32d6f07eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Fri, 8 Jan 2021 05:33:24 -0600 Subject: [PATCH] ITS#8747 Do not continue reading if connection is dying --- servers/lloadd/connection.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3