#1086: SSL Handshake performed on accept thread
-----------------------------------+----------------------------------------
Reporter:
kris...@ccpgames.com | Owner: fumanchu
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: wsgiserver | Keywords:
-----------------------------------+----------------------------------------
using the built-in ssl support with CherryPy requires one to use
"handshake on connect" feature.
This is done on the accept thread and since it involves substantial
communications between the client and server, it ties up the accept thread
for a considerable time.
It would be preferable if there were a way to hand an un-wrapped
connection off to the ThreadPool, and have the adapter.wrap() performed by
the worker thread. This would free up the accept thread to immediately
start another connection.
There are ugly workarounds that involve having the adapter cause a new
thread to be created that does its own server.tick() but it is not very
pleasing to the eye.
--
Ticket URL: <
http://www.cherrypy.org/ticket/1086>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework