summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-01 16:25:22 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-01 16:41:30 +0900
commitf9300d8cfeafa4b69c236cb64004094a495c52bb (patch)
tree73707f5d780a8ec27ef44d87a0eb9aaf3569eb92
parentd186fa6d01e9b61e7a297d1f8cf8b47547611622 (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.go2
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),