mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
server: set the length of connCh to 1
Handle heavy load. Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
+1
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user