1. cherrypy
  2. CherryPy
Issue #1128 new

ssl_pyopenssl

Anonymous created an issue

File "/usr/local/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/wsgiserver/ssl_pyopenssl.py", line 75, in _safe_call if is_reader and errnum in wsgiserver.socket_errors_to_ignore: AttributeError: 'module' object has no attribute 'socket_errors_to_ignore'

Comments (1)

  1. Taneli Taira

    The ssl_pyopenssl.py does: from cherrypy import wsgiserver

    The problem is that socket_errors_to_ignore is not an object of wsgiserver, it is an object of wsgiserver.wsgiserver2. You can verify this with python interactive interpreter and the following: from cherrypy import wsgiserver dir(wsgiserver) dir(wsgiserver.wsgiserver2)

    The latter lists socket_errors_to_ignore, while the first doesn't. Still the file ssl_pyopenssl.py tries to use socket_errors_to_ignore directly with wsgiserver.socket_errors_to_ignore. A simple fix is to use wsgiserver.wsgiserver2.socket_errors_to_ignore in line 75 instead.

  2. Log in to comment