Go back to previous topic
Forum Name "What Does RL Stand For?"
Topic subjectRE: Thanks. Both of you seem to be on it.
Topic URLhttps://forums.carrionfields.com/dcboard.php?az=show_topic&forum=43&topic_id=975&mesg_id=983
983, RE: Thanks. Both of you seem to be on it.
Posted by Isildur on Wed 31-Dec-69 07:00 PM
Are all the sockets active? It's surprising that your server would completely bog down as you approach the limit unless it's an OS issue.

Are you polling them in a tight loop? If so, that's probably a bad idea. If you're not already, try using something like select(), which blocks until some number of your sockets are ready for reading. When it returns, you service those sockets that are ready, then call select() again.

Check out the man page. (I'm assuming OSX comes with man pages.)