11 Jun
2013
11 Jun
'13
10:53 p.m.
Folks, I am a little confused, and I haven't been able to find anything in the Twisted docs regarding this? pool = threadpool.ThreadPool () root = Resource () root.putChild ("resources", File( server_root + os.sep + "resources") ) root.putChild ("thumbnails", File( server_root + os.sep + "thumbnails") ) root.putChild ("templates", File( server_root + os.sep + "templates") ) root.putChild ("albums", Gallery() ) factory = Site ( root ) print "Listening on Port 8888..." reactor.listenTCP ( 8888, factory) reactor.run() I can't find how to add a ThreadPool to a standard reactor? And how can I check or set Keep alive for the TCP connections? Can anyone point me in the right direction? - Benjamin