Is it safe to call ev_feed_event on an ev_timer in different thread?

2012-08-26 Thread 钱晓明
Hi, is ev_feed_event is thread safe? I have an ev_timer installed in a loop within main thread, can I call ev_feed_event in another thread to simulate the time out event? Is it safe?___ libev mailing list libev@lists.schmorp.de

Dropped connections

2012-08-26 Thread Marcel Wijnen
Hi All, Currently I'm starting to getting to know Libev. Thanks to anyone who contributed to this library. Just as an experiment I've set up a simple listening socket that accepts connections. My goal is to accept about 10K connections. After accepting the connections nothing is done. The point

Re: LibEV and C++ exception pass through

2012-08-26 Thread Marc Lehmann
On Tue, Aug 21, 2012 at 04:00:28PM +0200, David Imhoff dimhoff_de...@xs4all.nl wrote: I don't know how other compilers/platforms deal with this. Throwing exceptions through C code is not supported on most platforms. You can, however, compile libev weith a C++ compiler, which should work

Re: Dropped connections

2012-08-26 Thread Marc Lehmann
On Sun, Aug 26, 2012 at 10:06:03PM +0200, Marcel Wijnen mmfwwij...@gmail.com wrote: connections can be accepted at once. Out of 10K connections typically a couple of hundred are dropped. Well, it's not really related to libev, but here are a few things to check: a) ulimit -n b) do you run