Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Unix/Linux Server 256 Socket Limit Question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 DavidRM   Members   -  Reputation: 270

Like
Likes
Like

Posted 20 October 1999 - 07:15 AM

In unix, to use the select(...) routine to poll sockets for state changes, the file descriptor structure is a 256 bit array. This effectively limits a single process to only accessing 256 sockets at one time. How can do you get around this problem to allow more than 256 sockets/process?

Thanks in advance.

------------------
DavidRM
Samu Games


Sponsor:

#2 Sphet   Members   -  Reputation: 631

Like
Likes
Like

Posted 19 October 1999 - 07:20 AM

I just had a look in the Winsock help files, it it would seem that under Windows, FD_SET's have a default max descriptor of 64 entries (you can set it higher, but defaults are usually there for a reason). I would suspect you might have to do multiple selects() on ranges of connections, or fork it out to handle each range seperately.. I've never thought about it, but I suppose it would be a problem ..

#3 DavidRM   Members   -  Reputation: 270

Like
Likes
Like

Posted 20 October 1999 - 07:15 AM

We're considering something we're calling "relay servers" which are forked off to handle some of the connections. Before we go to that much trouble, though, we wanted to know if anyone knew a better way around the 256 connection limit.

------------------
DavidRM
Samu Games





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS