> No, the SSL code should NOT be allowed to block anything in any case, > even though the handshake is still not completed, in which case just > retry it at a later time.
That's why there's "do_handshake_on_connect" in the first place. I'm just talking about what the SSL module should do if you don't use it when you call wrap_socket(). If you do use it, driving the handshake to completion is up to your code, and you can use select, poll, and/or handle_read_event() or handle_write_event() as you see fit. I think we're talking past each other here. Using asyncore (as you know) is not simple; I believe I've outlined how to use it successfully and properly with the SSL module. Bill _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com