diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-20 15:01:46 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-20 15:01:46 +0900 |
commit | 3409f6a5443cf0d6cf0d318feba845f237cd14ba (patch) | |
tree | 1bc04889f107974720b13c7b86ead465b6ab7f72 | |
parent | f926984386bbdd67846b25004cf68ca276ed84b6 (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.go | 2 |
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, } |