summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-03-03 13:19:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-02 03:18:55 -0800
commit0079c40526a36608f502f0e395f01197233bbbd2 (patch)
tree3e5b320c4412c7ceb70c55728cc26418aaac37a1
parent32065b3f16a16eda5ce817821847f38487c84809 (diff)
fsm: fix min keepalive interval to 1sec from 1ns
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--server/fsm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go
index cc4fb95f..05e2c4fb 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -865,7 +865,7 @@ func keepaliveTicker(fsm *FSM) *time.Ticker {
}
sec := time.Second * time.Duration(fsm.pConf.Timers.State.KeepaliveInterval)
if sec == 0 {
- sec = 1
+ sec = time.Second
}
return time.NewTicker(sec)
}