[CherryPy] #1086: SSL Handshake performed on accept thread

1 view
Skip to first unread message

CherryPy

unread,
Aug 29, 2011, 1:28:00 PM8/29/11
to cherrypy...@googlegroups.com
#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

CherryPy

unread,
Aug 30, 2011, 8:31:04 AM8/30/11
to cherrypy...@googlegroups.com
#1086: SSL Handshake performed on accept thread
-----------------------------------+----------------------------------------
Reporter: kris...@ccpgames.com | Owner: fumanchu
Type: enhancement | Status: new
Priority: normal | Milestone: 3.2
Component: wsgiserver | Resolution:
Keywords: |
-----------------------------------+----------------------------------------
Changes (by kris...@ccpgames.com):

* milestone: => 3.2
Reply all
Reply to author
Forward
0 new messages