Ticket #6532 enhancement closed fixed
twisted.internet.endpoints.SSHCommandClientEndpoint.connect with new connections should return a cancellable Deferred
|Reported by:||itamar||Owned by:||itamar|
(diff, github, buildbot, log)
If you are creating an SSH endpoint with a new connection each time, the Deferred returned for endpoint connection should be cancellable. It should call transport.abortConnnection on its TCP connection to abort the connection attempt if it's already connected and is in SSH protocol negotiation mode.
(This is a separate feature from cancellable reusable connections since those presumably don't want to close the shared TCP connection.)