We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa29af commit 7c2c1eaCopy full SHA for 7c2c1ea
derp/derp_server.go
@@ -70,7 +70,13 @@ func init() {
70
}
71
72
const (
73
- perClientSendQueueDepth = 32 // packets buffered for sending
+ // perClientSendQueueDepth is the number of packets to buffer for sending.
74
+ // CODER: We've modified this to 512, up from 32 in upstream Tailscale to improve DERP
75
+ // throughput. 32 is an understandable number for big, public DERP servers that Tailscale run,
76
+ // serving many thousands of connections, and where Tailscale is footing the bill. In Coder's
77
+ // use case, we are serving hundreds to low thousands of users and the user's own company is
78
+ // paying the bills. In testing, it increases DERP throughput up to 6x.
79
+ perClientSendQueueDepth = 512
80
writeTimeout = 2 * time.Second
81
)
82
0 commit comments