From owner-freebsd-stable@FreeBSD.ORG Sun Mar 29 21:21:28 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C48B05DA for ; Sun, 29 Mar 2015 21:21:28 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80A09C00 for ; Sun, 29 Mar 2015 21:21:28 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::64fe:5f0d:c4ae:7330] (unknown [IPv6:2001:7b8:3a7:0:64fe:5f0d:c4ae:7330]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 99AC05C2E; Sun, 29 Mar 2015 23:21:19 +0200 (CEST) Subject: Re: nc (netcat) in 10.1 breaks after upgrade from 9.3 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C8DB43B9-4358-4F03-A58A-608099CDC3B2"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b6 From: Dimitry Andric In-Reply-To: <55186630.7020507@quip.cz> Date: Sun, 29 Mar 2015 23:21:06 +0200 Message-Id: References: <55186630.7020507@quip.cz> To: Miroslav Lachman <000.fbsd@quip.cz> X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2015 21:21:28 -0000 --Apple-Mail=_C8DB43B9-4358-4F03-A58A-608099CDC3B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 Mar 2015, at 22:53, Miroslav Lachman <000.fbsd@quip.cz> wrote: >=20 > nc (netcat) in 10.1 behaves differently than it was before upgrade and = breaks our scripts for monitoring services. >=20 > For example, following command works in FreeBSD 8.4 and 9.3 >=20 > echo stats | nc localhost 11211 >=20 > But it hangs in 10.1 at the END and never finishes. >=20 > It must be changed to: >=20 > echo stats | nc -N localhost 11211 >=20 > Is it intentional? Yes, this was introduced by upstream: = http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat.c#rev1.111 "Don't shutdown nc(1)'s network socket when stdin closes. Matches = *Hobbit*'s original netcat and GNU netcat; revert to old behaviour with the new -N = flag if needed." -Dimitry --Apple-Mail=_C8DB43B9-4358-4F03-A58A-608099CDC3B2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlUYbM4ACgkQsF6jCi4glqN3SACgoOG3p3STTPaaPo564joOxjwq 6ZcAn0XLtYOs9M+vkG6luHn1okqc1bOx =z2z4 -----END PGP SIGNATURE----- --Apple-Mail=_C8DB43B9-4358-4F03-A58A-608099CDC3B2--