mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 23:17:29 +00:00
net/ktimeout: add a package to set TCP user timeout
Setting a user timeout will be a more practical tuning knob for a number of endpoints, this provides a way to set it. Updates tailscale/corp#17587 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:

committed by
James Tucker

parent
a4a909a20b
commit
8fe504241d
15
net/ktimeout/ktimeout_default.go
Normal file
15
net/ktimeout/ktimeout_default.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
//go:build !linux
|
||||
|
||||
package ktimeout
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// SetUserTimeout is a no-op on this platform.
|
||||
func SetUserTimeout(fd uintptr, timeout time.Duration) error {
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user