diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-01 16:25:22 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-01 16:41:30 +0900 |
commit | f9300d8cfeafa4b69c236cb64004094a495c52bb (patch) | |
tree | 73707f5d780a8ec27ef44d87a0eb9aaf3569eb92 | |
parent | d186fa6d01e9b61e7a297d1f8cf8b47547611622 (diff) |
server: set the length of connCh to 1
Handle heavy load.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | server/fsm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go index 7ee1d9cc..fcd8b5b0 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -138,7 +138,7 @@ func NewFSM(gConf *config.Global, pConf *config.Neighbor) *FSM { gConf: gConf, pConf: pConf, state: bgp.BGP_FSM_IDLE, - connCh: make(chan net.Conn), + connCh: make(chan net.Conn, 1), opensentHoldTime: float64(HOLDTIME_OPENSENT), adminState: adminState, adminStateCh: make(chan AdminState, 1), |