[Twisted-Python] Conch - Why does one piece of code "fail" while another works

Donald Stufft donald at stufft.io
Tue Oct 1 19:21:38 MDT 2013


I have two pieces of code (see: https://gist.github.com/dstufft/9dc9978dc0af77e82f0c) one "works" (in that it fails verifying the host key like i'd expect) and one doesn't ("it never tries to verify the host key and just exists immediately).

I don't understand *why* though, why does the connectionReady dance make it work?

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20131001/f51cc196/attachment.pgp>


More information about the Twisted-Python mailing list