[Twisted-Python] examples/echoserv_ssl.py, win32

Eric C. Newton ecn at metaslash.com
Sun May 4 17:32:58 MDT 2003


Windows ME (yes, Windows ME, the trashy one)
Python 2.2.2
Twisted 1.0.4
pyOpenSSL-0.4.1.win32-py2.2    (from sourceforge)
OpenSSL 0.9.7b

After fixing the reported bug in echoserv_ssl.py, I ran this at a
cygwin prompt:

	$ python echoserv_ssl.py

I tried running echoclient, and I get a dialog box saying:

       Python has caused an error in SSLEAY32.DLL. 
       Python will now close.
       
       If you continue to experience problems,
       try restarting your computer.

After clicking "OK" the echoclient_ssl quits. Alright... I won't do
that.  But I also get a stack trace in the server, which reproduces
the error I get in my actual application.

I don't really want an SSL client, I want an SSL server.  So I point
InternetExplorer to: https://127.0.0.1:8000.  Same stack trace.  Here
it is:

    2003/05/04 19:28 [-] Log opened.
    2003/05/04 19:28 [*echo-ssl*] twisted.internet.protocol.Factory starting on 8000
    2003/05/04 19:28 [*echo-ssl*] Starting factory <twisted.internet.protocol.Factory instance at 0x00B56B40>
    2003/05/04 19:29 [twisted.internet.protocol.Factory] Traceback (most recent call last):
    2003/05/04 19:29 [twisted.internet.protocol.Factory]   File "C:\PYTHON22\lib\site-packages\twisted\internet\app.py", line 869, in run
    2003/05/04 19:29 [twisted.internet.protocol.Factory]     reactor.run(installSignalHandlers=installSignalHandlers)
    2003/05/04 19:29 [twisted.internet.protocol.Factory]   File "C:\PYTHON22\lib\site-packages\twisted\internet\default.py", line 123, in run
    2003/05/04 19:29 [twisted.internet.protocol.Factory]     self.mainLoop()
    2003/05/04 19:29 [twisted.internet.protocol.Factory]   File "C:\PYTHON22\lib\site-packages\twisted\internet\default.py", line 134, in mainLoop
    2003/05/04 19:29 [twisted.internet.protocol.Factory]     self.doIteration(t)
    2003/05/04 19:29 [twisted.internet.protocol.Factory]   File "C:\PYTHON22\lib\site-packages\twisted\internet\default.py", line 469, in doSelect
    2003/05/04 19:29 [twisted.internet.protocol.Factory]     why = getattr(selectable, method)()
    2003/05/04 19:29 [twisted.internet.protocol.Factory] --- <exception caught here> ---
    2003/05/04 19:29 [twisted.internet.protocol.Factory]   File "C:\PYTHON22\lib\site-packages\twisted\internet\ssl.py", line 269, in doRead
    2003/05/04 19:29 [twisted.internet.protocol.Factory]     skt, addr = self.socket.accept()
    2003/05/04 19:29 [twisted.internet.protocol.Factory] SSL.WantReadError: 

-Eric




More information about the Twisted-Python mailing list