Re: Dropped connections

2012-08-27 Thread Marcel Wijnen
Hi Marc, Hi Gabriel, Thank you for the replies! This is super helpful for me. My ulimit is high enough and I do check for errors, I haven't looked at the loop speed and the listen queue length. I will definitely look into those. I'm on Ubuntu by the way. Is it valuable for this email list if I pr

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

2012-08-27 Thread 钱晓明
so, I should use an extra ev_async to call ev_feed_event for that ev_timer? This ev_async in the same thread, and call ev_feed_event in its callback. 发送自HTC手机 - Reply message - 发件人: "Marc Lehmann" 收件人: "钱晓明" 抄送: "libev" 主题: Is it safe to call ev_feed_event on an ev_timer in different

Re: Dropped connections

2012-08-27 Thread Gabriel Kerneis
On Mon, Aug 27, 2012 at 06:59:39AM +0200, Marc Lehmann wrote: > d) is your listen queue long enough? On Linux, remember that the listen queue lenght is limited by the kernel parameter net.core.somaxconn (to 128 by default). You need to increase it before you call listen (hence restart your server