Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DavidRM

Unix/Linux Server 256 Socket Limit Question

This topic is 6847 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ..

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!