1
0
Fork 0
forked from External/ergo

review fixes

* move constant definitions
* always give the client at least quitTimeout to respond to ping,
  even if registerTimeout or quitTimeout are longer than idleTimeout
This commit is contained in:
Shivaram Lingamneni 2017-10-15 22:37:36 -04:00
parent 8910dc59ee
commit c026cc5ab6
2 changed files with 37 additions and 36 deletions

View file

@ -25,12 +25,6 @@ import (
)
const (
// RegisterTimeout is how long clients have to register before we disconnect them
RegisterTimeout = time.Minute
// IdleTimeout is how long without traffic before a registered client is considered idle.
IdleTimeout = time.Minute + time.Second*30
// QuitTimeout is how long without traffic before an idle client is disconnected
QuitTimeout = time.Minute
// IdentTimeoutSeconds is how many seconds before our ident (username) check times out.
IdentTimeoutSeconds = 1.5
)