cmd/derper: set a write timeout

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
pull/181/head
David Crawshaw 5 years ago committed by David Crawshaw
parent 72dbf26f63
commit 5ad947c761

@ -119,6 +119,7 @@ func main() {
letsEncrypt := tsweb.IsProd443(*addr)
s := derp.NewServer(key.Private(cfg.PrivateKey), log.Printf)
s.WriteTimeout = 2 * time.Second
if *mbps != 0 {
s.BytesPerSecond = (*mbps << 20) / 8
}

Loading…
Cancel
Save