Files
osrg-gobgp/pkg/server
Tuetuopay 162eae62bd grpc: fix goroutine leak in WatchEvent
The context used there was a background context, which was not inherited
from the stream. Thus when the client ends the stream (e.g. ^C
`gobgp monitor global rib`), the context never completed, preventing the
stop of most goroutines responsible for forwarding events. The only case
where it completes is when an event gets generated, the transmit channel
was closed, ending the chain of goroutines.

Fix by inheriting the context from the stream, which completes when the
stream ends, properly cleaning up all resources.
2022-10-26 17:09:07 +02:00
..
2022-01-13 02:07:20 +00:00
2021-12-08 10:39:16 +00:00
2021-12-08 10:39:16 +00:00
2021-12-08 10:39:16 +00:00
2021-12-08 10:39:16 +00:00
2021-12-08 10:39:16 +00:00
2021-12-10 00:27:37 +09:00
2021-12-08 10:39:16 +00:00
2021-12-08 07:22:50 +00:00