We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3bc97 commit 1eb0c76Copy full SHA for 1eb0c76
1 file changed
vertx-core/src/main/java/io/vertx/core/http/impl/http2/codec/Http2ClientConnectionImpl.java
@@ -62,6 +62,8 @@ public class Http2ClientConnectionImpl extends Http2ConnectionImpl implements Ht
62
this.authority = authority;
63
this.lifetimeEvictionTimestamp = maxLifetime > 0 ? System.currentTimeMillis() + maxLifetime : Long.MAX_VALUE;
64
this.handler = connHandler;
65
+ // Ensure that the expirationTimestamp is initialized
66
+ recycle();
67
}
68
69
@Override
@@ -199,8 +201,9 @@ private void recycle() {
199
201
200
202
203
void onStreamClosed(Http2Stream s) {
- super.onStreamClosed(s);
204
+ // Prepare this connection for returning as onStreamClosed() will return it to the pool.
205
recycle();
206
+ super.onStreamClosed(s);
207
208
209
0 commit comments