derp: move write timeout to package constant.

Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson
2020-03-20 00:38:52 -07:00
committed by Dave Anderson
parent dbfc916273
commit 1e031001db
2 changed files with 6 additions and 8 deletions

View File

@ -118,7 +118,6 @@ func main() {
letsEncrypt := tsweb.IsProd443(*addr)
s := derp.NewServer(key.Private(cfg.PrivateKey), log.Printf)
s.WriteTimeout = 2 * time.Second
expvar.Publish("derp", s.ExpVar())
// Create our own mux so we don't expose /debug/ stuff to the world.