Skip to content

Fix initialization and re-computation of expirationTimestamp in Http2ClientConnectionImpl#5866

Open
ahus1 wants to merge 1 commit into
eclipse-vertx:masterfrom
ahus1:is-5865-connection-impl-keepalive
Open

Fix initialization and re-computation of expirationTimestamp in Http2ClientConnectionImpl#5866
ahus1 wants to merge 1 commit into
eclipse-vertx:masterfrom
ahus1:is-5865-connection-impl-keepalive

Conversation

@ahus1

@ahus1 ahus1 commented Dec 27, 2025

Copy link
Copy Markdown
Contributor

Closes #5865

Motivation:

Setting expirationTimestamp is required before the connection is recycled to ensure that the background timer executed correctly.

In a previous attempt I tried to set the initial value to Long.MAX_VALUE, but then Http2Test.testClientKeepAliveTimeoutNoStreams started failing. So I'm no setting it a value using recycle().

@ahus1 ahus1 force-pushed the is-5865-connection-impl-keepalive branch from e0df732 to 1eb0c76 Compare December 27, 2025 16:39
@ahus1 ahus1 marked this pull request as ready for review December 27, 2025 17:16
@vietj

vietj commented Jan 7, 2026

Copy link
Copy Markdown
Member

@ahus1 is that possible to have a test for this ?

@ahus1

ahus1 commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

@vietj - this is fixing an unstable test that I referenced in the issue #5865. As it is about a timing issue, I wouldn't know how to implement a test case for this.

Can you please elaborate on what kind if test case you are looking for?

@vietj vietj modified the milestones: 5.2.0, 5.1.3, 5.1.4 Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unstable test Http2Test.testKeepAliveTimeout

2 participants