ClientCreator should not use reactor.callLater to fire its Deferred
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from exarkun <[email protected]>: This isn't an appropriate use of `callLater`. There's no guarantee the protocol instance will have been associated with a transport by the time that call fires. In practice, it has the opposite problem, the call happens long (a reactor iteration, basically) after it actually could have. Instead, `ClientCreator` should use a trivial protocol wrapper to hook `makeConnection` so it can fire the `Deferred` at exactly the right time. ---------- Type : defect Component: core Keywords : Priority : low Nosy : ---------- http://twistedmatrix.com/trac/ticket/3866