Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Asynchronous HTTP Request using specific ports

by andal (Hermit)
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027089]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2018-05-28 00:24 GMT
Find Nodes?
    Voting Booth?