Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Maximum number of concurent sockets

by MojaHead (Initiate)
on Jun 22, 2004 at 14:55 UTC ( [id://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 (Bishop) 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.

    Abigail

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.

    davidj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-24 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found