Mailing List Archive

[issue1251] ssl module doesn't support non-blocking handshakes
Changes by Jesús Cea Avión <jcea@jcea.es>:


----------
nosy: +jcea

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1251>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue1251] ssl module doesn't support non-blocking handshakes [ In reply to ]
Jesús Cea Avión <jcea@jcea.es> added the comment:

I'm hitting this issue aswell. How is going?.

I'm creating a socket with a, let say, 5 seconds timeout. The timeout
works fine before the "wrap_socket()", and after it. But the timeout
doesn't work WHILE in the "wrap_socket()" method call.

What can I do?.

If I need to call "do_handshake()" myself, working with
SSL_ERROR_WANT_READ/WRITE, I think this *needs* to be documented somewhere.

That is, any difference between "normal" sockets and "ssl" sockets need
to be documented in docs. Explicitly.

My opinion, of course :).

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1251>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue1251] ssl module doesn't support non-blocking handshakes [ In reply to ]
Bill Janssen <bill.janssen@gmail.com> added the comment:

Here's what's in the 3.0 docs:

The parameter do_handshake_on_connect specifies whether to do the SSL
handshake automatically after doing a socket.connect(), or whether the
application program will call it explicitly, by invoking the
SSLSocket.do_handshake()<http://docs.python.org/dev/3.0/library/ssl.html#ssl.SSLSocket.do_handshake>method.
Calling
SSLSocket.do_handshake()<http://docs.python.org/dev/3.0/library/ssl.html#ssl.SSLSocket.do_handshake>explicitly
gives the program control over the blocking behavior of the
socket I/O involved in the handshake.

Look at test.test_ssl.testNonBlockingHandshake() in 3.0alpha or in the PyPI
module. I'm still working on 2.6.

Bill

On Thu, May 15, 2008 at 3:56 PM, Jesús Cea Avión <report@bugs.python.org>
wrote:

>
> Jesús Cea Avión <jcea@jcea.es> added the comment:
>
> I'm hitting this issue aswell. How is going?.
>
> I'm creating a socket with a, let say, 5 seconds timeout. The timeout
> works fine before the "wrap_socket()", and after it. But the timeout
> doesn't work WHILE in the "wrap_socket()" method call.
>
> What can I do?.
>
> If I need to call "do_handshake()" myself, working with
> SSL_ERROR_WANT_READ/WRITE, I think this *needs* to be documented somewhere.
>
> That is, any difference between "normal" sockets and "ssl" sockets need
> to be documented in docs. Explicitly.
>
> My opinion, of course :).
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue1251>
> __________________________________
>

Added file: http://bugs.python.org/file10337/unnamed

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1251>
__________________________________
[issue1251] ssl module doesn't support non-blocking handshakes [ In reply to ]
Jesús Cea Avión <jcea@jcea.es> added the comment:

Thanks, Bill. I was reading 2.6 preview documentation, and nothing is
said there.

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1251>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com