summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-10-12 12:47:07 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-10-12 12:47:07 +0900
commit2ad40c3f1ed1d77c353f974c2731dac8e40b442b (patch)
tree1b46c06cee5f13b65dd577bf4f2865089bb1e2c0 /server
parentd46da74d4fba3fe169d0c4f05b0e657ec95f5336 (diff)
server: handle management requests quicker under heavy load
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/server.go2
1 files changed, 2 insertions, 0 deletions
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: