I've added in some code that Chris Stawarz contributed to allow the use of non-blocking sockets, with the program thread allowed to do other things during the handshake while waiting for the peer to respond. http://pypi.python.org/pypi/ssl If this is OK with everyone, I'd like to now port this back to 2.6 aand 3K. Bill