ClientCreator should not use reactor.callLater to fire its Deferred

[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.