Ticket #4735 enhancement new
Implement something like ReconnectingClientFactory for endpoints
| Reported by: | glyph | Owned by: | |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | brandl, keturn@…, free@… | Branch: | branches/persistent-client-service-4735 |
| Author: | dreid | Launchpad Bug: |
Description
It's pretty easy to write a retry loop which will keep attempting an endpoint connection until it succeeds; this is mostly a documentation issue. However, another use-case for ReconnectingClientFactory is to keep a connection up after disconnections even if the initial connection succeeds just fine and only disconnects later; in other words, to react to clientConnectionLost vs. clientConnectionFailed. Implementing this would be easier if it were a little easier to cheaply dynamically proxy a protocol object to capture the connectionLost notification, but it's definitely possible to do this today with some care. We should provide such a utility so that people using the new endpoint APIs have a convenient mechanism available. (As we implement this, we should take care not to make the same naming and documentation mistakes that ReconnectingClientFactory does.)
