Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Maximum number of concurent sockets

by MojaHead (Initiate)
on Jun 22, 2004 at 14:55 UTC ( #368747=perlquestion: print w/replies, xml ) Need Help??

MojaHead has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I have a question:
how the maximum number of concurent sockets in perl is defined? I've tested a server and have reached limit of ~ 300 connections on FreeBSD box and 156 connections on W2K (the server and client ran on same computer).

Thanks in advance.

Replies are listed 'Best First'.
Re: Maximum number of concurent sockets
by Fletch (Chancellor) on Jun 22, 2004 at 15:05 UTC

    There's not any one limit for perl specifically and it's going to vary by OS (and can also vary based on the way the kernel was compiled or how much your sysadmin hates you). No clue on Wintendo variants, but on *NIX-y platforms the BSD::Resource module and / or the ulimit(1) command (or shell builtin) will tell you what it is.

Re: Maximum number of concurent sockets
by Abigail-II (Bishop) on Jun 22, 2004 at 15:05 UTC
    Perl itself doesn't have such limits. But limits may be imposed on by your OS, either as limits for each process, or as system-wide limits (that is, limits that are shared by all processes). Depending on your OS, some limits can't be changed, some can, but require a reboot (some after a recompilation of your kernel) and some can be changed on the fly. But that's all very OS dependent, and has not much to do with Perl.


Re: Maximum number of concurent sockets
by davidj (Priest) on Jun 22, 2004 at 15:07 UTC
    The maximum number of concurrent connections to a server is not a function of perl, but a function of the server to which you are trying to connect.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://368747]
Approved by NetWallah
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-12-01 21:27 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (14 votes). Check out past polls.