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

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]
[Discipulus]: as good as the Roma foundation
Discipulus we began with a fratricide..
[erix]: ah, Romulus killed Remus. Sad! ;)
erix .oO( does Trump have a brother ? )
[Discipulus]: yes a minor one:
[Discipulus]: Trumpet
Discipulus or is a dog, cat..?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2017-01-20 13:07 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (174 votes). Check out past polls.