On Nov 22, 2007 7:43 PM, Marc Lehmann <[EMAIL PROTECTED]> wrote:
> > I was always hoping that he might build it into libevent (which also
> > suffers from the 64 handle limit problem on Win32).
>
> There is a replacement library called libev which doesn't suffer from
> that, and also has a perl module interface.

Thanks for the tip about the new libev -- I'll give it a try.

I was grepping the libev source code for FD_SETSIZE (which apparently
is set by default to 64 for Win32). Have you ever tried setting
FD_SETSIZE to a larger value? I found this mail here suggesting  that
a value of 16384 works fine:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg14069.html

Recently I was testing epoll on Ubuntu and managed to get 100k
connected sockets without problem. With the 100k sockets connected
then top reported a memory usage which lead be to believe that an
average socket connection used 9.5KB. Have you tried libev with large
amounts of sockets? Do you happen to know what the maximum number of
sockets is for Win32?

-- Simon

Reply via email to