Skip to content

Allow zero HTTP/2 keep-alive timeout#6214

Open
shblue21 wants to merge 1 commit into
eclipse-vertx:masterfrom
shblue21:fix/http2-keep-alive-zero
Open

Allow zero HTTP/2 keep-alive timeout#6214
shblue21 wants to merge 1 commit into
eclipse-vertx:masterfrom
shblue21:fix/http2-keep-alive-zero

Conversation

@shblue21

@shblue21 shblue21 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Motivation:

Http2ClientConfig#setKeepAliveTimeout(Duration.ZERO) currently throws.
The method documents zero and null as no timeout, and HTTP/1 and HTTP/3
client configs already accept zero.

This change allows zero for HTTP/2 keep-alive timeout while still rejecting
negative durations, and adds a regression test.

Conformance:

I have signed the ECA.

Motivation:

Http2ClientConfig#setKeepAliveTimeout(Duration.ZERO) throws, although zero
and null are documented as no timeout. HTTP/1 and HTTP/3 client configs
already accept zero.

Changes:

Allow zero for HTTP/2 keep-alive timeout and add a regression test.

Signed-off-by: Jihun Kim <shblue21@naver.com>
@shblue21 shblue21 force-pushed the fix/http2-keep-alive-zero branch from b2994ca to b32887d Compare June 23, 2026 13:33
@shblue21

shblue21 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

This looks related to the recent HTTP client config changes.

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.

1 participant