Jump to content
  • Advertisement

Archived

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

Robinhood

How many TCP connections can a server keep?

This topic is 5280 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

Advertisement
I''ve seen a 2000 server machine with about 2000 connections open, but it was under controlled conditions. Usually the limit is 64 per thread. You can keep adding threads, but eventually you will run out of system resources.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Matei
Unsigned short you mean.


Highly offtopic.. but:

16 bits, you and daerid mean.





Share this post


Link to post
Share on other sites
In fact there is no real practical limit.

They aren''t limited by 65535 ports, as with server connections, several can use the same port.

It just depends really on whether the server has time to process the commands etc.

You might need to tune the OS for large numbers.

Mark

Share this post


Link to post
Share on other sites
quote:
Original post by daerid
Mainly depends on system resources, but the theoretical limit is the maximum of an unsigned int, which is used to specify the port number: 65535 or so.



That''s for making connections. You can listen to one port (eg. 80, http) and accept as many incoming connections as you like. A webserver can have thousands of connections open, all on port 80.

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!