grpc-go/status
Jean de Klerk 35c3afad17
Transport refactor (#2305)
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.
2018-09-20 15:45:40 -07:00
..
go16.go status: Introduce FromContextError convenience function (#2057) 2018-05-10 09:54:36 -07:00
go17.go status: Introduce FromContextError convenience function (#2057) 2018-05-10 09:54:36 -07:00
go17_test.go status: Introduce FromContextError convenience function (#2057) 2018-05-10 09:54:36 -07:00
status.go Transport refactor (#2305) 2018-09-20 15:45:40 -07:00
status_test.go status: Introduce FromContextError convenience function (#2057) 2018-05-10 09:54:36 -07:00