From owner-freebsd-i386@FreeBSD.ORG Fri Aug 21 20:50:05 2009 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEDDB106568C for ; Fri, 21 Aug 2009 20:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8B5858FC19 for ; Fri, 21 Aug 2009 20:50:05 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7LKo5Pa072227 for ; Fri, 21 Aug 2009 20:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7LKo5Sj072226; Fri, 21 Aug 2009 20:50:05 GMT (envelope-from gnats) Resent-Date: Fri, 21 Aug 2009 20:50:05 GMT Resent-Message-Id: <200908212050.n7LKo5Sj072226@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "H. Steuer" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A37D1065672 for ; Fri, 21 Aug 2009 20:40:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 290838FC1A for ; Fri, 21 Aug 2009 20:40:23 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7LKeMjv052324 for ; Fri, 21 Aug 2009 20:40:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7LKeM7B052296; Fri, 21 Aug 2009 20:40:22 GMT (envelope-from nobody) Message-Id: <200908212040.n7LKeM7B052296@www.freebsd.org> Date: Fri, 21 Aug 2009 20:40:22 GMT From: "H. Steuer" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/138046: tcp sockets stay in SYN_SENT even after receiving RST. never time out as well. X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 20:50:05 -0000 >Number: 138046 >Category: i386 >Synopsis: tcp sockets stay in SYN_SENT even after receiving RST. never time out as well. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 21 20:50:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: H. Steuer >Release: 7.1, 7.2, 8.0-BETA2 of august 2 >Organization: >Environment: FreeBSD xxxx 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #3: Tue Aug 18 22:50:46 CEST 2009 root@xxxxx:/usr/obj/usr/src/sys/DL380G5 i386 FreeBSD xxxxxx 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #1: Sat Apr 11 22:55:52 CEST 2009 root@xxxxx:/usr/obj/usr/src/sys/DL380G5 i386 FreeBSD edinburgh 8.0-BETA2 FreeBSD 8.0-BETA2 #1: Sun Aug 2 21:16:35 CEST 2009 pieter@edinburgh:/usr/obj/usr/src/sys/GENERIC-nodbg i386 >Description: when a tcp connection is made to a existing host but a non-listening port, the tcp connection will stay in state SYN_SENT and will never be closed unless the process gets killed. tcpdump shows a SYN packet answered by a RST. so the RST should close the socket. the second problem is that at least the socket should time out in some way which isnt the case either. i have written a small tcp client that you can download at http://skywalker.patronas.de/tcpclient.c it connects 50 times, so after running that app, you will see 50 sockets in SYN_ACK state. >How-To-Repeat: download http://skywalker.patronas.de/tcpclient.c compile run against exisiting host and non-listening port while the process is alive, netstat -an | grep [port] >Fix: >Release-Note: >Audit-Trail: >Unformatted: