diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java index a3efe4057ce..64465ab4dfa 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java @@ -989,8 +989,16 @@ public abstract class HTTP2Session implements ISession, Parser.Listener @Override public String toString() { - return String.format("%s@%x{queueSize=%d,sendWindow=%s,recvWindow=%s,streams=%d,%s}", getClass().getSimpleName(), - hashCode(), flusher.getQueueSize(), sendWindow, recvWindow, streams.size(), closed); + return String.format("%s@%x{l:%s <-> r:%s,queueSize=%d,sendWindow=%s,recvWindow=%s,streams=%d,%s}", + getClass().getSimpleName(), + hashCode(), + getEndPoint().getLocalAddress(), + getEndPoint().getRemoteAddress(), + flusher.getQueueSize(), + sendWindow, + recvWindow, + streams.size(), + closed); } private class ControlEntry extends HTTP2Flusher.Entry diff --git a/jetty-http2/http2-http-client-transport/src/main/java/org/eclipse/jetty/http2/client/http/HttpConnectionOverHTTP2.java b/jetty-http2/http2-http-client-transport/src/main/java/org/eclipse/jetty/http2/client/http/HttpConnectionOverHTTP2.java index 09ae404448b..d6624a54e8e 100644 --- a/jetty-http2/http2-http-client-transport/src/main/java/org/eclipse/jetty/http2/client/http/HttpConnectionOverHTTP2.java +++ b/jetty-http2/http2-http-client-transport/src/main/java/org/eclipse/jetty/http2/client/http/HttpConnectionOverHTTP2.java @@ -85,4 +85,13 @@ public class HttpConnectionOverHTTP2 extends HttpConnection } channels.clear(); } + + @Override + public String toString() + { + return String.format("%s@%h[%s]", + getClass().getSimpleName(), + this, + session); + } }