[ale] Forcing the TIME_WAIT issue

Michael D. Hirsch mhirsch at nubridges.com
Tue Oct 22 14:01:58 EDT 2002


On Tuesday 22 October 2002 01:52 pm, John Wells wrote:
> I posted something similar to this awhile back, but don't think I
> ever got a definitive answer.
>
> I have a Tcl module that listens on port 2000 on Solaris 2.6. When I
> stop the process (essentially a kill), it leaves the port in
> TIME_WAIT for approx. 4 minutes iirc.  I understand the logic behind
> this, but is there anyway to free up the port and force it out of
> TIME_WAIT?

You need to set the socket or be reused.  I don't recall offhand--it's 
something like SO_REUSE--check the man page for the socket 
options.

Michael

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.






More information about the Ale mailing list