mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
![Will Jordan](/assets/img/avatar_default.png)
`TCP_USER_TIMEOUT` (since Linux 2.6.37) specifies the maximum amount of time that transmitted data may remain unacknowledged before TCP will forcibly close the connection and return `ETIMEDOUT` to the application. Setting a low TCP user timeout allows RPC connections quickly reroute around unavailable storage nodes during network interruptions.
12 lines
153 B
Go
12 lines
153 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package netutil
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
func setTCPUserTimeout(fd uintptr, timeout time.Duration) error {
|
|
return nil
|
|
}
|