Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 19:28:53 -0500
From:      Glen Barber <gjb@FreeBSD.org>
To:        Dave Mischler <dave@mischler.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Is "nc" broken in 10.0?
Message-ID:  <20140211002853.GL1629@glenbarber.us>
In-Reply-To: <1392077771.9826.4.camel@barrel.mischler.com>
References:  <1392077771.9826.4.camel@barrel.mischler.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--M9YpAf2t6OxtMGzg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 10, 2014 at 07:16:11PM -0500, Dave Mischler wrote:
> the 'nc' program doesn't seem to close the network connection anymore
> when it reaches EOF.  This worked fine in 9.x.  Can somebody else
> confirm this broken behavior?
>=20
> Example:
>=20
> On one session, listen for an incoming connection:
>=20
> % nc -l 5101
>=20
> On another session, open an outgoing connection, then close the input:
>=20
> % nc 127.0.0.1 5101
> ^D
>=20
> The session will not close.  It doesn't seem to matter if the input is a
> terminal, file, pipe, or whatever else you can think of.
>=20

I think you want the '-N' flag.

------------------------------------------------------------------------
r249499 | delphij | 2013-04-15 01:31:59 -0400 (Mon, 15 Apr 2013) | 8 lines

MFV r249496,249498.  The most visible change is that we no longer shuts
down the connection when stdin closes, by default.  This matches
Hobbit's
original netcat and GNU netcat.

Old behavior can be restored with the new -N flag.

------------------------------------------------------------------------

Glen


--M9YpAf2t6OxtMGzg
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBCAAGBQJS+W7FAAoJELls3eqvi17Qm74P/RKnNZe344U9ao6LTmNYQ4hr
rZ2zT79EL5pxG0xfrDUeWJAinAT/VIO5ciAaDAvaQdl/jdQ/wR0QZz3Q4TTycHK2
SB2t4dWycSOCcsDTKwxe9eeArf5HwHmocF0TS+oeR7UxJMCDScoDAKpnaV0Ncpom
Du0Btk0KLku1kh+HD19rtwU1K8tf1K9bdU5Wy44sp9FemmvgaqqQ2ihWxWxOA0H5
i+j+WEryWePFJuySsxLicOLVGMXA1fpTtuMS6h1S10IgX/sD4wzIg2XYzEB3HD7B
6iFtH2QjC71KtEt9/70gBMqXK/gig3amuZ6i7abTl2N02ERm0Nl+FvTnJUy9R+99
l0oPA7QexH2J9zcOzhY4Js+ONoo7SDwH4tneIcHCniY+VA6/JLTvc9gkHRJUD3uD
9BxtBsbFGUACi67BT8cwIwwAiS3KCanauSqmpMysYI5j74hMuqxB/9rP6j0+yamK
L7HetMhCBHsBOklFW/bnyk2QOzMfSYBL6eaEsdr3PKCFMIvQVGB2ckL85VyTYKzG
OmQYhNcgF69R7pnX0uajUYFGAactWcJRY/nZ1uO5uOLbnoLpTEsL4peUsisvQWfN
IuVX12qKLS4EGaSzIobin9sQTZfudbe232FNdrHMpGBS6xB5HS05av7OVrOizhpH
yhyWKspdbxGnaghGD0fO
=a7ux
-----END PGP SIGNATURE-----

--M9YpAf2t6OxtMGzg--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140211002853.GL1629>