Subject Re: Firebird crash at 63 connection
Author Petr Hartman
--- In firebird-support@yahoogroups.com, Vlad Khorsun <hvlad@...> wrote:
>
> > Hello,
> >
> > we had the same problem on several OS (Windows XP, Windows 2003=20
> > Server). My colleague who dealt with this problem wrote me:
> >
> > Function select() does not accept more than 64 socket handles. In=20
> > win32.hlp for function select() is written this:
> > (The default value of FD_SETSIZE is 64, which can be modified by=20
> > #defining FD_SETSIZE to another value before #including WINSOCK2.H.)
>
> Firebird defined FD_SETSIZE as 1024 but included winsock.h, not
> winsock2.h
>
> Regards,
> Vlad

Yes, but function WaitForMultipleObjects() can only wait on 64 event
objects at a time (MAXIMUM_WAIT_OBJECTS).
In any case, I couldn't use Firebird SuperServer for Windows (1.5.4,
2.0.3) for more than 63 open connections (if I used events, there were
even only 31 connections).

Regards,
Petr Hartman