[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] FD_SETSIZE - max connections in Windows - help!
This package is built success with VC6 or VS2003 on Windows XP platform.
It need to use libevent-1.4.7-stable-iocp-1\WIN32-Prj\libevent.dsw .
Which libevent version do you use currently?
I should port iocp related things to that version.
2010/3/19 Patrick Galbraith <patg@xxxxxxxx>:
> Hi again Stephen,
>
> More info - I tried building with Visual Studio and get this error:
>
> ------ Build started: Project: libevent, Configuration: Debug Win32 ------
> Build started 3/18/2010 9:45:57 PM.
> InitializeBuildStatus:
> Creating ".\Debug\libevent.unsuccessfulbuild" because "AlwaysCreate" was
> specified.
> ClCompile:
> win32iocp.c
> c:\program files\microsoft sdks\windows\v7.0a\include\ws2def.h(583): error
> C2011: 'sockaddr_in' : 'struct' type redefinition
> c:\program files\microsoft sdks\windows\v7.0a\include\ws2def.h(286)
> : see declaration of 'sockaddr_in'
> c:\dev\libevent-1.4.7-iocp\event.h(167): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> win32.c
> c:\program files\microsoft sdks\windows\v7.0a\include\ws2def.h(583): error
> C2011: 'sockaddr_in' : 'struct' type redefinition
> c:\program files\microsoft sdks\windows\v7.0a\include\ws2def.h(286)
> : see declaration of 'sockaddr_in'
> c:\dev\libevent-1.4.7-iocp\event.h(167): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> strlcpy.c
> signal.c
> c:\dev\libevent-1.4.7-iocp\signal.c(41): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> misc.c
> c:\dev\libevent-1.4.7-iocp\win32-code\misc.c(33): warning C4996: '_ftime64':
> This function or variable may be unsafe. Consider using _ftime64_s instead.
> To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
> details.
> c:\program files\microsoft visual studio
> 10.0\vc\include\sys\timeb.h(124) : see declaration of '_ftime64'
> log.c
> c:\dev\libevent-1.4.7-iocp\log.c(51): fatal error C1083: Cannot open include
> file: 'sys/time.h': No such file or directory
> http.c
> c:\dev\libevent-1.4.7-iocp\http.c(33): fatal error C1083: Cannot open
> include file: 'sys/param.h': No such file or directory
> evutil.c
> c:\dev\libevent-1.4.7-iocp\evutil.c(43): fatal error C1083: Cannot open
> include file: 'unistd.h': No such file or directory
> event_tagging.c
> c:\dev\libevent-1.4.7-iocp\event_tagging.c(36): fatal error C1083: Cannot
> open include file: 'sys/param.h': No such file or directory
> event.c
> c:\dev\libevent-1.4.7-iocp\event.c(38): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> evdns.c
> c:\dev\libevent-1.4.7-iocp\evdns.c(82): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> evbuffer.c
> c:\dev\libevent-1.4.7-iocp\evbuffer.c(35): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> buffer.c
> c:\dev\libevent-1.4.7-iocp\buffer.c(45): fatal error C1083: Cannot open
> include file: 'sys/time.h': No such file or directory
> Generating Code...
>
> Build FAILED.
>
> Time Elapsed 00:00:06.22
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
> 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.
>
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.