Ruby Sockets Vulnerable?

U

unni.tallman

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?
 
R

Robert Klemme

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top