[Libevent-users] performance patch
Niels Provos
provos at citi.umich.edu
Tue Feb 26 21:59:31 EST 2008
On Tue, Feb 26, 2008 at 12:41 PM, Tani Hosokawa <tani at tanihosokawa.org> wrote:
> Under high load, unless you build a dedicated acceptor thread you will
> find that only allowing a listen backlog of 10 connections will cause
> lots of attempted connections to simply be dropped if you have any
> significant amount of processing to do per request. The reason I put
> 1024 in there is all implementations that I know of silently truncate
I just submitted a change to trunk yesterday that raiseed the limit to 128.
I also added a new API, evhttp_accept_socket(), to which you can
provide an already created fd for which you could set the listen queue
to whatever you like.
Niels.
More information about the Libevent-users
mailing list