From 2ad40c3f1ed1d77c353f974c2731dac8e40b442b Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 12 Oct 2016 12:47:07 +0900 Subject: server: handle management requests quicker under heavy load Signed-off-by: FUJITA Tomonori --- server/server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server') diff --git a/server/server.go b/server/server.go index f92b8be8..c0b4682e 100644 --- a/server/server.go +++ b/server/server.go @@ -217,6 +217,8 @@ func (server *BgpServer) Serve() { } select { + case f := <-server.mgmtCh: + f() case conn := <-server.acceptCh: passConn(conn) default: -- cgit v1.2.3