make the keep alive interval configurable (#3444)

* Make keep alive configurable

* Fix unit tests
This commit is contained in:
Nuno Diegues
2022-06-09 16:31:37 +01:00
committed by GitHub
parent 619fa9fb44
commit 4c96cf75bf
8 changed files with 18 additions and 15 deletions

View File

@@ -355,7 +355,7 @@ var _ = Describe("Timeout tests", func() {
getTLSClientConfig(),
getQuicConfig(&quic.Config{
MaxIdleTimeout: idleTimeout,
KeepAlive: true,
KeepAlivePeriod: idleTimeout / 2,
DisablePathMTUDiscovery: true,
}),
)
@@ -480,7 +480,7 @@ var _ = Describe("Timeout tests", func() {
getQuicConfig(&quic.Config{
HandshakeIdleTimeout: handshakeTimeout,
MaxIdleTimeout: handshakeTimeout,
KeepAlive: true,
KeepAlivePeriod: handshakeTimeout / 2,
DisablePathMTUDiscovery: true,
}),
)