restore the committee's loop
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
03e2789699
commit
f8bf885686
|
@ -325,7 +325,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
||||||
// Re-check the parser state after parsing to avoid filling,
|
// Re-check the parser state after parsing to avoid filling,
|
||||||
// otherwise fillRequestBuffer() would acquire a ByteBuffer
|
// otherwise fillRequestBuffer() would acquire a ByteBuffer
|
||||||
// that may be leaked.
|
// that may be leaked.
|
||||||
if (_parser.inContentState() || fillRequestBuffer() <= 0)
|
if (_parser.inContentState() && fillRequestBuffer() <= 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue