[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] FD_SETSIZE - max connections in Windows - help!



Stephen,

Hi! Thanks for this link, but on both windows 64 and 32-bit, I encounter this error:
evdns.c: In function 'evdns_request_transmit_to':
evdns.c:1878: warning: pointer targets in passing argument 2 of 'send' differ in
signedness
c:\msysgit\msysgit\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winsoc
k2.h:549: note: expected 'const char *' but argument is of type 'uint8_t *'
evdns.c: At top level:
evdns.c:2299: error: conflicting types for 'evdns_resolve_reverse_ipv6'
evdns.h:362: note: previous declaration of 'evdns_resolve_reverse_ipv6' was here

evdns.c: In function 'evdns_resolve_reverse_ipv6':
evdns.c:2308: error: 'struct in6_addr' has no member named 'u'
make[2]: *** [evdns.lo] Error 1
make[2]: Leaving directory `/c/dev/libevent-1.4.7-stable-iocp/libevent-1.4.7-sta
ble-iocp-1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/dev/libevent-1.4.7-stable-iocp/libevent-1.4.7-sta
ble-iocp-1'
make: *** [all] Error 2

Have you seen this before? This is using mingw to compile.

regards,

Patrick


lau stephen wrote:
These is a libevent version that contains an iocp implement for windows.
It implement the iocp for event_add/event_del interface, so it can be
used by memcached.

http://spserver.googlecode.com/files/libevent-1.4.7-stable-iocp-1.zip


2010/3/16 Patrick Galbraith <patg@xxxxxxxx>:
Hi all,

We have hit a brick wall with memcached - namely max connections with
select.

Namely, select from libvent use by memcached on windows, according to the
documentation from MSDN you need to
set FD_SETSIZE to the maximum number of sockets to use. By default
FD_SETSIZE
== 64. We set FD_SETSIZE to 2048 in  win32select.c at the top prior to
including winsock2.h, but still no success. It seems to fail at 41
connections.

Has anyone dealt with this before?

Thank you,

Patrick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.