ITS#8747 Do not continue reading if connection is dying

This commit is contained in:
Ondřej Kuzník 2021-01-08 05:33:24 -06:00 committed by Quanah Gibson-Mount
parent d4f7537b57
commit 54a9c909c7

View file

@ -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;