Antoine Pitrou <pit...@free.fr> added the comment: > The select call after the connect_ex waits until the connection is > done, for the first write event is fired then, so the socket is > connected afterwards.
You are right. Here is a patch for py3k implementing connect_ex() and solving the issue with the missing "_sslobj" attribute. It makes your script run fine. (ideally I should add some tests to the patch, at least for connect_ex) ---------- keywords: +patch nosy: +giampaolo.rodola stage: needs patch -> patch review Added file: http://bugs.python.org/file20900/ssl_connect.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11326> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com