Well I see that you're using the same event loop in all worker threads. That's obviously not gonna work.
What you could do for example is to accept() connections from the main thread, and for each accepted connection spawn a worker thread that handles that connection only. Each worker thread must have its own loop, you can't share loops between threads. _______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev