The AsyncoreEchoServer class in test_ssl.py doesn't actually test a real integration with asyncore since the do_handshake_on_connect flag is set to True and hence temporarily blocks the asyncore polling loop as long as the ssl handshake finishes. The patch in attachment subclasses some asyncore internals so that a non-blocking ssl handshake takes place. Tested under Windows XP SP3, Python 2.6rc1.
Being able to test the async features of both sides of the SSL connection is a good thing. Also, the subclass provides a useful example for users who want to use asyncore and ssl servers without blocking on an incoming connection.
Sure, no argument. I was just making clear what was going on. Bill On Thu, Sep 18, 2008 at 7:33 PM, Josiah Carlson <report@bugs.python.org>wrote: > > Josiah Carlson <josiahcarlson@users.sourceforge.net> added the comment: > > Being able to test the async features of both sides of the SSL > connection is a good thing. > > Also, the subclass provides a useful example for users who want to use > asyncore and ssl servers without blocking on an incoming connection. > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue3899> > _______________________________________ >