Commit b32887d
committed
Allow zero HTTP/2 keep-alive timeout
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>1 parent 86203ec commit b32887d
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- vertx-core/src
- main/java/io/vertx/core/http
- test/java/io/vertx/tests/http
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
63 | 73 | | |
0 commit comments