Fixes #4190 Jetty hangs after thread blocked in SharedBlockingCallback.block() called by HttpOutput.close.

Now releasing the buffer when in CLOSING state.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-10-15 15:47:03 +02:00
parent a0e90bab96
commit 6b26ac9ee9
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable
{
if (!_state.compareAndSet(state, State.CLOSED))
break;
releaseBuffer();
return;
}
case CLOSED: