chjurk/twisted-tcp6 — Issue #1: tcp.Client's connecting must be asynchronous
Author: chjurk
Created: 2011-10-12 14:53:42+00:00
State: open

With the current implementation, both `test_tcp` and `test_tcp6` will fail, because the reactor still has `DelayedCall` objects attached. The problem originates from `tcp.Client` which does an immediate connect when constructed (using `resolveAddress`, `initConnection`). With that, the connection exists and the timeout timer is canceled, another `callLater` is invoked after that. `startedConnecting` in `BaseConnector.connect` is called when the connection is already established.