This commit is contained in:
parent
95dccc3e75
commit
a2856ad82a
|
@ -33,7 +33,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//setup a timeout to prevent slow clients blocking. See https://github.com/golang/go/issues/16100
|
//setup a timeout to prevent slow clients blocking. See https://github.com/golang/go/issues/16100
|
||||||
timeoutListener, err := newListener("tcp", server.Addr, time.Second*5, time.Second*5)
|
timeoutListener, err := newListener("tcp", server.Addr, time.Second*15, time.Second*30)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue