diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-10-12 12:47:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-10-12 12:47:07 +0900 |
commit | 2ad40c3f1ed1d77c353f974c2731dac8e40b442b (patch) | |
tree | 1b46c06cee5f13b65dd577bf4f2865089bb1e2c0 | |
parent | d46da74d4fba3fe169d0c4f05b0e657ec95f5336 (diff) |
server: handle management requests quicker under heavy load
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | server/server.go | 2 |
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: |