I was using this on the old gevent with libevent to fork several threads that listens on one port
address = "0.0.0.0", 8000
server = WSGIServer(address, application)
server.pre_start()
for i in range(10):
pid = gevent.hub.fork()
if pid == 0:
break
try:
server.serve_forever()
except KeyboardInterrupt:
server.stop()
How can it be done on the gevent 1.0rc?
Thanks,
Jason
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.