Commit a186fd70 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#8747 Do not continue reading if connection is dying

parent 4f499755
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment