Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class Http2ClientConnectionImpl extends Http2ConnectionImpl implements Ht
this.authority = authority;
this.lifetimeEvictionTimestamp = maxLifetime > 0 ? System.currentTimeMillis() + maxLifetime : Long.MAX_VALUE;
this.handler = connHandler;
// Ensure that the expirationTimestamp is initialized
recycle();
}

@Override
Expand Down Expand Up @@ -199,8 +201,9 @@ private void recycle() {

@Override
void onStreamClosed(Http2Stream s) {
super.onStreamClosed(s);
// Prepare this connection for returning as onStreamClosed() will return it to the pool.
recycle();
super.onStreamClosed(s);
}

@Override
Expand Down
Loading