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 4f4997551d
commit a186fd70ab

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;