Antoine Pitrou <pit...@free.fr> added the comment: This is not a bug. With a non-blocking socket, the handshake itself is non-blocking, so you have to be prepared to retry. Your snippet also fails under Python 2.6 for me, so this isn't a regression either.
If you want to know how to do a non-blocking handshake, see e.g. http://hg.python.org/cpython/file/fd6446a88fe3/Lib/test/test_ssl.py#l632 or (using asyncore) http://hg.python.org/cpython/file/fd6446a88fe3/Lib/test/test_ftplib.py#l299 ---------- nosy: +pitrou resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12343> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com