summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-30 16:24:34 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-30 16:27:56 +0900
commit38d80240654acf7e6b41077b00ef4c8288d93e46 (patch)
treedbbb7bd2c056c30d527a261ff189a66974a1f9c5 /server
parentbbdfde029d269b89c557dbd852dbc1c8e377ce38 (diff)
server: play favorites with grpc requests
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/server.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index f4777e8e..fe413b59 100644
--- a/server/server.go
+++ b/server/server.go
@@ -269,6 +269,15 @@ func (server *BgpServer) Serve() {
}
select {
+ case grpcReq := <-server.GrpcReqCh:
+ m := server.handleGrpc(grpcReq)
+ if len(m) > 0 {
+ senderMsgs = append(senderMsgs, m...)
+ }
+ default:
+ }
+
+ select {
case c := <-server.rpkiConfigCh:
server.roaClient, _ = newROAClient(c)
case c := <-server.bmpConfigCh: