Issue #887 resolved

traceback errors if http client connects to https cherrypy server

Anonymous created an issue

For some reason, cherrypy will log traceback errors if a http client tries to connect while cherrypy is using SSL:

{{{ Exception in thread CP WSGIServer Thread-11: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in bootstrap self.run() File "/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/init.py", line 1073, in run conn.communicate() File "/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/init.py", line 1011, in communicate "The client sent a plain HTTP request, but " File "/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/init.py", line 591, in simple_response self.wfile.sendall("".join(buf)) File "/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/init.py", line 721, in sendall bytes_sent = self.send(data) File "/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/init__.py", line 728, in send return self._sock.send(data) Error: [('SSL routines', 'SSL23_GET_CLIENT_HELLO', 'http request')] }}}

It seems like a simple 'request rejected; wrong protocol' or something like that would be sufficient instead of a full traceback in this case.

Reported by swalker@opensolaris.org

Comments (3)

  1. Log in to comment