Class Http2StreamFaults

java.lang.Object
org.mockserver.netty.unification.Http2StreamFaults

public final class Http2StreamFaults extends Object
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:
  • INFO for a request its client cancelled, or whose connection closed, before it was complete;
  • WARN for an error of the stream's own, which Netty then resets the stream for with the error's code;
  • WARN for a connection Netty closes because it had to be sent too many of those resets.
See "HTTP/2 streams cut short" in docs/code/netty-pipeline.md for what bounds the entries of one connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.Channel channel, Throwable cause)
    Whether cause is 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isRequestCutShort

      public static boolean isRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.Channel channel, Throwable cause)
      Whether cause is 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.