mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-10 11:41:47 +00:00
extend deadlines to one minute
Kubernetes-commit: b04d1177efb0cfc84b76732848eef8f0ea89b25b
This commit is contained in:
parent
f323801a34
commit
ae38726e6e
@ -38,7 +38,7 @@ import (
|
|||||||
|
|
||||||
// writeDeadline defines the time that a client-side write to the websocket
|
// writeDeadline defines the time that a client-side write to the websocket
|
||||||
// connection must complete before an i/o timeout occurs.
|
// connection must complete before an i/o timeout occurs.
|
||||||
const writeDeadline = 30 * time.Second
|
const writeDeadline = 60 * time.Second
|
||||||
|
|
||||||
var (
|
var (
|
||||||
_ Executor = &wsStreamExecutor{}
|
_ Executor = &wsStreamExecutor{}
|
||||||
@ -61,8 +61,8 @@ const (
|
|||||||
// "pong" message before a timeout error occurs for websocket reading.
|
// "pong" message before a timeout error occurs for websocket reading.
|
||||||
// This duration must always be greater than the "pingPeriod". By defining
|
// This duration must always be greater than the "pingPeriod". By defining
|
||||||
// this deadline in terms of the ping period, we are essentially saying
|
// this deadline in terms of the ping period, we are essentially saying
|
||||||
// we can drop "X-1" (e.g. 6-1=5) pings before firing the timeout.
|
// we can drop "X" (e.g. 12) pings before firing the timeout.
|
||||||
pingReadDeadline = (pingPeriod * 6) + (1 * time.Second)
|
pingReadDeadline = (pingPeriod * 12) + (1 * time.Second)
|
||||||
)
|
)
|
||||||
|
|
||||||
// wsStreamExecutor handles transporting standard shell streams over an httpstream connection.
|
// wsStreamExecutor handles transporting standard shell streams over an httpstream connection.
|
||||||
|
Loading…
Reference in New Issue
Block a user