[issue11326] connect_ex() implementation missing for SSL sockets

2011-03-01 Thread Florian Mayer
Florian Mayer added the comment: Thanks for the fast response and for fixing this. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch + some tests in r88664 (3.3), r88665 (3.2) and r88666 (2.7). Thanks for reporting this! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.1 _

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file20901/ssl_connect.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file20900/ssl_connect.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou 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 miss

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Florian Mayer
Florian Mayer 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. -- ___ Python tracker

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Florian Mayer
Florian Mayer added the comment: A workaround would be exposing _ssl.wrapssl in ssl so that it can be called once the socket is connected and no non-public API had to be used. -- ___ Python tracker __

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, one issue is that connect_ex() isn't implemented for SSL sockets, so it defers to the normal implementation instead, which is wrong. But your still is wrong too. connect_ex() returns an error, meaning the socket isn't connected and you must retry. Here is