Package org.mockserver.netty.unification
Class Http2StreamFaults
java.lang.Object
org.mockserver.netty.unification.Http2StreamFaults
What MockServer logs when an HTTP/2 stream ends before it should, on a connection made straight to MockServer and
on the client leg of a CONNECT or SOCKS tunnel alike, each once and with no stack trace:
INFOfor a request its client cancelled, or whose connection closed, before it was complete;WARNfor an error of the stream's own, which Netty then resets the stream for with the error's code;WARNfor a connection Netty closes because it had to be sent too many of those resets.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.Channel channel, Throwable cause) Whethercauseis the aggregator of a direct connection's stream reporting the part of a request it held when the stream closed, for a reason found here: an error already logged, the client's cancel or the connection's end, each of the last two logged here.
-
Method Details
-
isRequestCutShort
public static boolean isRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.Channel channel, Throwable cause) Whethercauseis the aggregator of a direct connection's stream reporting the part of a request it held when the stream closed, for a reason found here: an error already logged, the client's cancel or the connection's end, each of the last two logged here. Anything else closed the stream and is the caller's to report.
-