restore the committee's loop

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-02-10 18:02:37 +01:00
parent 03e2789699
commit f8bf885686
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
// Re-check the parser state after parsing to avoid filling,
// otherwise fillRequestBuffer() would acquire a ByteBuffer
// that may be leaked.
if (_parser.inContentState() || fillRequestBuffer() <= 0)
if (_parser.inContentState() && fillRequestBuffer() <= 0)
break;
}
}