help-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-serveez] Avoiding receive overflows


From: Raimund 'Raimi' Jacob
Subject: Re: [help-serveez] Avoiding receive overflows
Date: Thu, 19 Dec 2002 22:52:04 +0100 (CET)

On 19 Dec 2002, Andreas Rottmann wrote:

evening!

> Is there a possibilty to block a socket, so it isn't selected for
> reading in the server loop? IMO, it would make sense to only select a

not that i knew of, no.

> socket fd for reading if there is space in the receive buffer. This
> way one could avoid reeceive buffer overflows completly...

i dont think that this is worth the effort. usually the program runs a lot
faster than any network device can supply enough data to fill up the
buffers. the buffer overflows are rarely seen. i think we only managed to
see it with a local mass-client test on a heavily loaded machine,
definitly not with < 1024 open files.

but feel free to send patches :-) perhaps such a check can be made when
the select/poll structures are built. watch out to not include more
overhead then you gain in speed...

Bye,
    Raimi

--
      __/\     _/\    _____/\.___/\
     /   /    /  /___/   ____/  __/\     Name    : Raimi
    /   /  __/    __/   / __/  / _\/     Contact : address@hidden
   /   /__/ /     \/   /_/_/  /_/        Visit   : http://www.lkcc.org
  /________/___/\._\._____/_____/\       3.141592653589793238462643383
  \._______\.__\/__/\.____\.____\/       27950288419716939937510582097





reply via email to

[Prev in Thread] Current Thread [Next in Thread]