diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-19 11:38:45 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-19 13:21:01 +0900 |
commit | 22b43f7ae7daf381520a529157be4c71c11c2bc8 (patch) | |
tree | f089db0dca3b7e92319dfc46c88cf00f44f5cdcd /table | |
parent | 7ba78e831c23352179e846e096a2a3ecbd3f8f37 (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 'table')
0 files changed, 0 insertions, 0 deletions