[issue11326] connect_ex() implementation missing for SSL sockets

Antoine Pitrou report at bugs.python.org
Sat Feb 26 01:56:56 CET 2011


Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11326>
_______________________________________


More information about the Python-bugs-list mailing list