Date: Tue, 2 Jun 1998 12:04:53 -0700 (PDT) From: jason.axley@attws.com To: andrew@iaccess.com.au Cc: freebsd-questions@FreeBSD.ORG Subject: Re: closing TIME_WAIT connections??? Message-ID: <199806021904.MAA15227@invernes.nwest.attws.com> In-Reply-To: <00f401bd8db4$b75877e0$e34a05cb@alpine.iaccess>
next in thread | previous in thread | raw e-mail | index | archive | help
These aren't connections that are still open, they have been closed but the local TCP sockets are in the TIME_WAIT state. This is a feature of TCP implementations that keeps another application from opening the same port too soon and possibly receiving packets that were destined for the application that *used* to be connected to that port. The length of time it takes for these to time out is TCP implementation dependent and is usually around 2 minutes. They are nothing to worry about! The netstat manpage probably describes what the text in that column means. Here's the entry from the Solaris netstat manpage: TIME_WAIT Wait after close for remote shut- down retransmission. -Jason On 2 Jun, Andrew Specht wrote: > Hi, > > Is there a way to decrease the time connections stay open? > > For example, this is what i get with netstat -an: > > tcp 0 0 222.5.45.8.8080 TIME_WAIT > tcp 0 0 127.0.0.1.81 TIME_WAIT > tcp 0 0 222.5.45.8.8080 TIME_WAIT > tcp 0 0 127.0.0.1.81 TIME_WAIT > tcp 0 0 222.5.45.8.8080 TIME_WAIT > tcp 0 0 127.0.0.1.81 TIME_WAIT > tcp 0 0 127.0.0.1.81 TIME_WAIT > tcp 0 0 222.5.45.8.8080 TIME_WAIT > tcp 0 0 222.5.45.8.8080 TIME_WAIT > tcp 0 0 127.0.0.1.81 TIME_WAIT > tcp 0 0 222.5.45.8.8080 TIME_WAIT > tcp 0 0 127.0.0.1.81 TIME_WAIT > tcp 0 0 222.5.45.8.8080 TIME_WAIT > > There are hundreds of connections like that.. > > Is there a way to close these after a specific amount of time, maybe in the > kernel source? > > Thanks again > > > > Andrew Specht | System > Administrator > E-mail: andrew@iaccess.com.au | Internet Access Australia > Internet: http://www.iaccess.com.au | Melbourne, Australia > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- -Jason +-------------------------------------------------------------------------+ | Jason Axley jason.axley@attws.com | | System Administrator Phone: 425-828-8473 | | AT&T Wireless Services Fax: 425-828-1720 | +-------------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806021904.MAA15227>