mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Improve the error message.
This commit is contained in:
parent
746464bc16
commit
1ecd4bb274
@ -30,7 +30,7 @@ import (
|
||||
apirequest "k8s.io/apiserver/pkg/endpoints/request"
|
||||
)
|
||||
|
||||
var errConnKilled = fmt.Errorf("kill connection/stream")
|
||||
var errConnKilled = fmt.Errorf("killing connection/stream because serving request timed out and response had been started")
|
||||
|
||||
// WithTimeoutForNonLongRunningRequests times out non-long-running requests after the time given by timeout.
|
||||
func WithTimeoutForNonLongRunningRequests(handler http.Handler, requestContextMapper apirequest.RequestContextMapper, longRunning apirequest.LongRunningRequestCheck, timeout time.Duration) http.Handler {
|
||||
|
Loading…
Reference in New Issue
Block a user