summaryrefslogtreecommitdiffhomepage
path: root/policy
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-19 11:38:45 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-19 13:21:01 +0900
commit22b43f7ae7daf381520a529157be4c71c11c2bc8 (patch)
treef089db0dca3b7e92319dfc46c88cf00f44f5cdcd /policy
parent7ba78e831c23352179e846e096a2a3ecbd3f8f37 (diff)
server: fix grpc deadlock
When grpc client stops reading, gobgpd becomes in deadlock because gobgpd tries to write to grpc request's channel for a response but nobody reads from the channel. This patch fixes this issue. Another problem that this patch fixes is that grpc client reads slowly, gobgpd would sleep on grpc request's channel for a response. That should not happen. So instead grpc creates responses first, then run goroutine to write the responses to the client. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'policy')
0 files changed, 0 insertions, 0 deletions