apiserver/pkg/util
Wei Fu f883f17313 proxy: should add PingPeriod for websocket translator
IIUC, before using the translator handler, the ping data can be delivered from
the client to the runtime side since kube-apiserver does not parse any client
data. However, with WebSocket, the server responds with a pong to the client
without forwarding the data to the runtime side. If a proxy is present, it may
close the connection due to inactivity. SPDY's PingPeriod can help address this
issue.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
Co-authored-by: Antonio Ojea <aojea@google.com>
(cherry picked from commit dc59c0246fb407dcf035afc224f63fcf0da8244e)
Signed-off-by: Wei Fu <fuweid89@gmail.com>

Kubernetes-commit: e8b0252a41295ad09e44f638dde9f76e1c0accf4
2025-02-12 21:39:59 -05:00
..
apihelpers apiserver: apf controller, bootstrap, tests should use flowcontrol v1 API 2023-10-11 09:20:41 -04:00
dryrun Revert "remove unwanted values returned from dry-run" 2022-04-06 12:34:42 -04:00
feature Cleanup defer from SetFeatureGateDuringTest function call 2024-04-23 10:39:47 +02:00
flowcontrol Add unit test of borrowing by exempt, fix bug 2024-06-12 03:38:15 -04:00
flushwriter sync: initially remove files BUILD */BUILD BUILD.bazel */BUILD.bazel 2018-03-15 09:38:17 +00:00
notfoundhandler aggregator: pass apiServiceRegistrationControllerInitiated signal directly to apiserviceRegistration controller 2021-10-20 11:06:27 +02:00
openapi Cleanup defer from SetFeatureGateDuringTest function call 2024-04-23 10:39:47 +02:00
peerproxy Fix Go vet errors for master golang 2024-09-12 18:15:22 +05:30
proxy proxy: should add PingPeriod for websocket translator 2025-02-12 21:39:59 -05:00
shufflesharding Less demanding test cases in TestUniformDistribution 2021-01-25 01:44:08 -05:00
version Restore honoring --version build ID overrides 2024-08-13 18:48:56 -04:00
webhook webhook: alter regex to account for x509sha1 GODEBUG removal 2024-12-30 13:39:17 -08:00
wsstream Re-add the legacy wsstream package and deprecate it 2023-05-23 16:15:07 -07:00
x509metrics Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00