#833: Using cherryd with fastcgi, cherryd does not check for server.socket_file
config settings
---------------------------+----------------------------------------------- -
Reporter: guest | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy code | Keywords: cherryd, fastcgi
---------------------------+----------------------------------------------- -
When using the fastcgi option, cherryd requires a host/port combo for use
with bindAddress, even if the global configuration provides a socket file
to use instead. The cherryd code could be changed thusly:
{{{
sock_file = cherrypy.config.get('server.socket_file', None)
if sock_file:
bindAddress = sock_file
else:
fastcgi_port = cherrypy.config.get('server.socket_port', 4000)
fastcgi_bindaddr = cherrypy.config.get('server.socket_host',
'0.0.0.0')
bindAddress = (fastcgi_bindaddr, fastcgi_port)
}}}
I'm not actually sure if that would work or not.
--
Ticket URL: <http://www.cherrypy.org/ticket/833>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework