Fix #5605 Unblock non container Threads

Ensure that HttpInput is always closed to EOF, EarlyEOF or Error, so that non container threads doing blocking reads
will not block forever, even if late.   Delay recycling of HttpInput until next request is received.
This commit is contained in:
gregw 2021-02-02 16:33:32 +01:00
parent 9cc7be4842
commit b3268eb3b5
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.ReadPendingException;
import java.nio.channels.WritePendingException;
import java.util.function.Supplier;
import org.eclipse.jetty.io.Connection;
import org.eclipse.jetty.io.EndPoint;
@ -116,6 +117,12 @@ public class MockEndPoint implements EndPoint
throw new UnsupportedOperationException(NOT_SUPPORTED);
}
@Override
public Throwable cancelFillInterest(Supplier<Throwable> cancellation)
{
throw new UnsupportedOperationException(NOT_SUPPORTED);
}
@Override
public boolean tryFillInterested(Callback callback)
{