Skip to content
Snippets Groups Projects
Commit 54a9c909 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 d4f7537b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment