mirror of https://github.com/grpc/grpc-go.git
internal: remove transportMonitor, replace with callbacks This refactors the internal http2 transport to use callbacks instead of continuously monitoring the transport in a separate goroutine. This has several advantages: - Less goroutines. - Less complexity: synchronous callbacks are much easier to reason to reason about than asynchronous monitoring goroutines. - Callbacks: these provide definitive locations for monitoring the creation and closure of a transport, paving the way for GracefulStop. This CL also consolidates all the logic about backoff and iterating through the list of addresses into a single method. |
||
|---|---|---|
| .. | ||
| go16.go | ||
| go17.go | ||
| go17_test.go | ||
| status.go | ||
| status_test.go | ||