diff options
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index c25652ed..beeb85dc 100644 --- a/server/server.go +++ b/server/server.go @@ -218,7 +218,7 @@ func (server *BgpServer) Serve() { rfs, _ := g.AfiSafis.ToRfList() server.globalRib = table.NewTableManager(rfs, g.MplsLabelRange.MinLabel, g.MplsLabelRange.MaxLabel) server.listenerMap = make(map[string]*net.TCPListener) - acceptCh := make(chan *net.TCPConn) + acceptCh := make(chan *net.TCPConn, 4096) l4, err1 := listenAndAccept("tcp4", server.listenPort, acceptCh) server.listenerMap["tcp4"] = l4 l6, err2 := listenAndAccept("tcp6", server.listenPort, acceptCh) |