Ruby Sockets Vulnerable?

I have a TCPServer listening on a port. I forked a 500 odd TCP Clients
and tried to connect to this TCPServer. Around 300 clients got
connected, others gave the error :

               Connection timed out - connect(2) (Errno::ETIMEDOUT)

I wasn’t able to connect anymore clients to that server. Does this mean
that ruby TCPServer can serve only a limited number of clients?

On 20.10.2006 13:12, unni.tallman wrote:

I have a TCPServer listening on a port. I forked a 500 odd TCP Clients
and tried to connect to this TCPServer. Around 300 clients got
connected, others gave the error :

               Connection timed out - connect(2) (Errno::ETIMEDOUT)

I wasn’t able to connect anymore clients to that server. Does this mean
that ruby TCPServer can serve only a limited number of clients?

It is a limitation of the underlying network functionality not of Ruby.
If you are on Windows non server version a very strict limitation is
actually built into the OS.

Note that it is generally not a good idea to allow arbitrary numbers of
clients to be served.

Regards

robert

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs