Dropped connections

Marc Lehmann schmorp at schmorp.de
Mon Aug 27 06:59:39 CEST 2012


On Sun, Aug 26, 2012 at 10:06:03PM +0200, Marcel Wijnen <mmfwwijnen at 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 accept in a loop? do you run it fast enough?
c) does accept sometimes return an error, do you check for errors?
d) is your listen queue long enough?

These are the most obvious things that come to my mind.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list