From owner-freebsd-net@freebsd.org Wed Mar 1 15:41:50 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDA9CCF26C9 for ; Wed, 1 Mar 2017 15:41:50 +0000 (UTC) (envelope-from koue@chaosophia.net) Received: from chaosophia.net (chaosophia.net [91.121.173.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "chaosophia.net", Issuer "chaosophia.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 77755E7E for ; Wed, 1 Mar 2017 15:41:49 +0000 (UTC) (envelope-from koue@chaosophia.net) Received: from chaosophia.net (localhost [127.0.0.1]) by chaosophia.net (8.15.2/8.15.2) with ESMTPS id v21FJE6W055123 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 1 Mar 2017 16:19:14 +0100 (CET) (envelope-from koue@chaosophia.net) Received: (from _prayer@localhost) by chaosophia.net (8.15.2/8.15.2/Submit) id v21FJEbQ055122 for freebsd-net@freebsd.org; Wed, 1 Mar 2017 16:19:14 +0100 (CET) (envelope-from koue@chaosophia.net) Received: from [194.97.158.70] by chaosophia.net with HTTP (Prayer-1.3.5); 01 Mar 2017 16:19:13 +0100 Date: 01 Mar 2017 16:19:13 +0100 From: Nikola Kolev To: freebsd-net@freebsd.org Subject: Sockets unexpected behavior Message-ID: X-Mailer: Prayer v1.3.5 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on chaosophia.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2017 15:41:50 -0000 Howdy, I'm maintainer of www/obhttpd - OpenBSD httpd. Currently I'm trying to update the port to current version of httpd in OpenBSD cvs and I'm facing problem with the sockets during startup. There is major change in sockets management which cause httpd to exited abnormally on FreeBSD during startup with correct configuration file: # ./httpd -d -f ~/nkolev/httpd-multi.conf startup server: invalid location lost child: pid 55160 exited abnormally server: invalid location server: invalid location lost child: pid 55159 exited abnormally lost child: pid 55161 exited abnormally logger exiting, pid 55162 parent terminating, pid 55158 and then the output of sockstat is: # sockstat -l | grep ":80 " ? ? ? ? tcp4 192.168.104.17:80 *:* ? ? ? ? tcp4 127.0.0.1:80 *:* ? ? ? ? tcp4 192.168.104.17:80 *:* ? ? ? ? tcp4 127.0.0.1:80 *:* ? ? ? ? tcp4 192.168.104.17:80 *:* ? ? ? ? tcp4 127.0.0.1:80 *:* I'm even able to connect to the socket once: # telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. ^] telnet> quit Connection closed. I'm facing the same problem on 11-STABLE and 10-STABLE and with IPv6 configuration also. I assume sockets should not appear in sockstat output after abnormally exit of httpd. Is this httpd problem or FreeBSD kernel problem? Regards, Nikola -- Nikola Kolev koue@chaosophia.net https://github.com/koue/