summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-20 15:01:46 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-20 15:01:46 +0900
commit3409f6a5443cf0d6cf0d318feba845f237cd14ba (patch)
tree1bc04889f107974720b13c7b86ead465b6ab7f72
parentf926984386bbdd67846b25004cf68ca276ed84b6 (diff)
server: enable buffering for grpc response
aimed at preventing drop of monitoring notification Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--server/grpc_server.go2
1 files changed, 1 insertions, 1 deletions
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,
}