From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 23 02:28:25 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A57835C2 for ; Tue, 23 Jul 2013 02:28:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 407832004 for ; Tue, 23 Jul 2013 02:28:25 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id m15so1251416wgh.5 for ; Mon, 22 Jul 2013 19:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=WMlglG7QoB9vVljRDcmvzjfWDqWRLz2E2MwY3rWHmxY=; b=DDxJkin6CyRP3uA2oAV2GA77pGLfdsPoBEL8/pnTTU7MpCZTocNx/b2WFCO72aLj/1 go2iGi/bkOiWI4oA2kTRwKNYGMgRpPF6nzNVT0hNQnJPMY7PF4aneYFOgHqB7nXSLzub P3VDfT+eytNBjXhOnI9o3AV8teeWi6emfhHmv5vfaq5UtfH/j1UockhIYK14r32Jvu9Z fJgm+VZFqMKANKbUGcybuGwbztrKSXfwjWrTa7RmorVifERj/6KFp0gtL4dNuJiGmhKa NWPldDz8Bb4ZFgLCCyonGUVynhDWgjufSQEYIxLZbimpTRatLVB/YKkm7pqCZMB+xGgM UcrQ== MIME-Version: 1.0 X-Received: by 10.194.63.229 with SMTP id j5mr20981556wjs.79.1374546503664; Mon, 22 Jul 2013 19:28:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Mon, 22 Jul 2013 19:28:23 -0700 (PDT) In-Reply-To: <99748.1374516748@server1.tristatelogic.com> References: <99748.1374516748@server1.tristatelogic.com> Date: Mon, 22 Jul 2013 19:28:23 -0700 X-Google-Sender-Auth: TdQVZ0FHs7Uj0n15RHySCFHMi-s Message-ID: Subject: Re: bin/176713: [patch] nc(1) closes network socket too soon From: Adrian Chadd To: "Ronald F. Guilmette" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 02:28:25 -0000 Right, and your patch just stops the shutdown(), right? Rather than teaching nc to correctly check BOTH socket states before deciding to close things. I'd personally rather see nc taught to check to see whether it can possibly make ANY more progress before deciding to shut things down. -adrian