From owner-freebsd-net@FreeBSD.ORG Tue Aug 24 09:16:43 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D97C16A4CE for ; Tue, 24 Aug 2004 09:16:43 +0000 (GMT) Received: from happy.kiev.ua (happy.kiev.ua [193.109.241.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 977E543D2D for ; Tue, 24 Aug 2004 09:16:42 +0000 (GMT) (envelope-from gul@happy.kiev.ua) Received: from gul by happy.kiev.ua with local (Exim 4.41) id 1BzXPz-0003DA-3c for freebsd-net@freebsd.org; Tue, 24 Aug 2004 12:16:39 +0300 Date: Tue, 24 Aug 2004 12:16:38 +0300 From: Pavel Gulchouck To: freebsd-net@freebsd.org Message-ID: <20040824091638.GE27112@happy.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Linux X-FTN-Address: 2:463/68 X-Flames-To: /dev/null X-GC: GCC d- s+: a33 C+++ UL++++ UB++++ P+ L++ E--- W++ N++ o-- K- w--- O++ X-GC: M? V- PS PE+ Y+ PGP+ t? 5? X? R? !tv b+ DI? D? G e h--- r+++ y+++ User-Agent: Mutt/1.5.6i Subject: FIN_WAIT_2 timeout X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: gul@gul.kiev.ua List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 09:16:43 -0000 Hi. I have hangs tcp-sessions in the FIN_WAIT_2 state, in which packets sends to remote for several days. Sockstate tells none aboute its, restart httpd has no effect. http://httpd.apache.org/docs/misc/fin_wait_2.html says that FreeBSD has a timeout for FIN_WAIT_2 state, but I don't see it. Number of such sessions grows according to uptime. FreeBSD 5.2.1-RELEASE-p9. Any suggestions? root@racoon:~>netstat -na | fgrep 195.248.160.78 tcp4 0 0 193.109.240.55.80 195.248.160.78.59843 FIN_WAIT_2 tcp4 0 0 193.109.240.55.80 195.248.160.78.56084 FIN_WAIT_2 tcp4 0 0 193.109.240.55.80 195.248.160.78.37466 FIN_WAIT_2 tcp4 0 0 193.109.240.55.80 195.248.160.78.31848 FIN_WAIT_2 [...] root@racoon:~>sockstat | fgrep 195.248.160.78 root@racoon:~>netstat -na | grep -c FIN_WAIT_2 419 tcpdump shows: 20:43:54.922521 hosting.itpark.com.ua.http > 195.248.160.78.48714: . ack 3765418226 win 0 20:43:54.923546 hosting.itpark.com.ua.http > 195.248.160.78.48714: . ack 1 win 65535 (DF) 20:44:09.920818 hosting.itpark.com.ua.http > 195.248.160.78.31848: . ack 3792205062 win 0 20:44:09.921773 hosting.itpark.com.ua.http > 195.248.160.78.31848: . ack 1 win 65535 (DF) -- Lucky carrier, Pavel.