fix the committee's loop

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-02-10 15:49:55 +01:00
parent 3c4713db69
commit 3c46c53d91
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;
}
}