[medusa] Re: HELP! too many file descriptors in select()!!!!

Gregory P. Smith greg@e...
Sat, 7 Apr 2001 12:06:17 -0700

On Sat, Apr 07, 2001 at 06:45:15PM -0000, Weiss Blitz wrote:
> Yikes!!!... 
> Is 512 the maximum possible number of file descriptors under Win2k 
> Advanced Server?!
> What about under Linux? 
> Do I hear 32767 or higher? Please,please,please?!!

I never said 512 was the maximum, just suggested it as a possible
value that's better than 64. You'll have to ask microsoft what the
max is... (linux defaults to 1024 per process but its dynamically
changable to high values using the /proc filesystem).

> This will greately limit the number of open sockets that Medusa can 
> handle concurrently! My application is an instant-messenger server 
> and needs to maintain an open socket connection with each client!
> Any suggestions?
> Carlos :(

Holding an open connection to each client even while idle is not
necessarily good (but i agree, its much simpler). Is there any reason
you have to?

In mojonation for our message based protocol running on top of TCP, we
close connections after an idle period or when nearning your limit of
max connections and reestablish them as needed. We use relay servers
for people who are behind NAT or firewalls that can't accept incoming
connections when another party needs to reestablish a connection with
them (but can make outgoing ones which if open are preferred over relay).


Gregory P. Smith gnupg/pgp: http://electricrain.com/greg/keys/
C379 1F92 3703 52C9 87C4 BE58 6CDA DB87 105D 9163