python - Tornado: Pre-forking with unix sockets -



python - Tornado: Pre-forking with unix sockets -

using tornado web server, i'm attempting utilize pre-fork after binding unix socket, next error:

runtimeerror: cannot run in multiple processes: ioloop instance has been initialized. cannot phone call ioloop.instance() before calling start_processes()

is there reason tornado throws issue when binding unix sockets , using:

myserver.start(0) vs using tcp port?

the error has nil unix sockets. ioloops not survive fork gracefully, if going fork must before initializing global ioloop (but after binding sockets). in general, must little possible before fork, since many tornado components implicitly start ioloop. if using multiple tcpservers, sure fork first 1 start; others should in single-process mode.

python webserver tornado

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -