Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Asynchronous HTTP Request using specific ports

by andal (Friar)
on Apr 05, 2013 at 07:42 UTC ( #1027089=note: print w/ replies, xml ) Need Help??


in reply to Asynchronous HTTP Request using specific ports

The TIME_WAIT state is a protection measure of TCP protocol. If you initiate closure of some TCP connection, then after connection is closed the port used by the connection shall stay open for a while. This is necessary for proper functioning of the TCP.

There's a way to force the system to cancel TIME_WAIT using SO_REUSEADDR, but you are running chance of confusing your own application. While used for server application, this is considered to be of low probability. But you are doing it for client application that connects to the same set of hosts, so you may get unexpected closures from remote server.


Comment on Re: Asynchronous HTTP Request using specific ports

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-04-19 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls