From 3409f6a5443cf0d6cf0d318feba845f237cd14ba Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 20 Jul 2015 15:01:46 +0900 Subject: server: enable buffering for grpc response aimed at preventing drop of monitoring notification Signed-off-by: ISHIDA Wataru --- server/grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/grpc_server.go b/server/grpc_server.go index a316ab19..160e9cfc 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -606,7 +606,7 @@ func NewGrpcRequest(reqType int, remoteAddr string, rf bgp.RouteFamily, d interf RequestType: reqType, RouteFamily: rf, RemoteAddr: remoteAddr, - ResponseCh: make(chan *GrpcResponse), + ResponseCh: make(chan *GrpcResponse, 8), EndCh: make(chan struct{}, 1), Data: d, } -- cgit v1.2.3