Subject Re: [ib-support] ibase crash (error on main_port, shuttingdow)
Author Frank Schlottmann-Goedde
Sorry, my post went to Ann directly,
so here it is again

"Ann W. Harrison" wrote:
>
> At 09:02 PM 6/15/2001 +0200, H. Th. van der Meer wrote:
>
> >I took a look at inet.c. The files from firebird and interbase differ. On
> >line 36 FD_SETSIZE is defined as 256 in one and 1024 in the other.

You must have a very old version of the interbase source.

>From the interbase ChangeLog:

>
> 2000-09-20 02:15 bsriram
>
> * InterBase/remote/inet.c:
>
>
> Problem: _______ If the user count went about 256+, some of the
> connections were not being serviced. i.e. the request from those
> connections were not being handled at all.
>
> Analysis: ________ We took Microsoft's advice 5 years ago and pound
> defined FD_SETSIZE to 256 in remote/inet.c. The InterBase server
> traverses the port list and calls the FD_SET macro to prepare for
> the select() call. The macro performs the appropriate bounds
> checking and silently tosses extra ports when the array is full. So
> we will never listen to more than 256 server ports with select()
> even though we are happy to accept() them.
>
> It has nothing to do with Microsoft or the size of datatypes. We
> need to keep up with our customers' usage patterns.
>
> Solution: ________ Raising the pound define of FD_SETSIZE to 1024
> in remote/inet.c solves the connectivity problems on Windows NT.



> >
> >I would like to know who made this change? and why?
>
> Almost certainly Frank Schlottmann-Goedde on behalf of Brad Pepers.

No, Brad Pepers changes affected a select anomality (or normality) on
Linux that caused connection timeouts.

You may try to use the debug version to get some more log entries.
ftp://firebird.sourceforge.net/pub/firebird/fb-Win32-Snapshot-Dbg-0.9.5.156.zip

Frank


--
"Fascinating creatures, phoenixes. They can carry immensely heavy loads,
their tears have healing powers and they make highly faithful pets."
- J.K. Rowling
http://firebird.sourceforge.net