Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: TCP server: How to reject connections when busy?

by squirrel (Novice)
on Nov 29, 2011 at 21:19 UTC ( [id://940701]=note: print w/replies, xml ) Need Help??


in reply to Re: TCP server: How to reject connections when busy?
in thread TCP server: How to reject connections when busy?

Thanks - that seems to be what is happening, but it differs from what some of the perl docs say. eg:
http://perldoc.perl.org/perlipc.html#Sockets%3a-Client%2fServer-Communication

"Listen The Listen parameter is set to the maximum number of pending connections we can accept until we turn away incoming clients. Think of it as a call-waiting queue for your telephone. "

or

http://docstore.mik.ua/orelly/perl/cookbook/ch17_03.htm

The numeric argument to listen is the number of un accept ed connections that the operating system should queue before clients start getting "connection refused" errors.
  • Comment on Re^2: TCP server: How to reject connections when busy?

Replies are listed 'Best First'.
Re^3: TCP server: How to reject connections when busy?
by JavaFan (Canon) on Nov 29, 2011 at 23:58 UTC
    I just did a perldoc -f listen, which refers to man 2 listen.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-18 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found