Is "nc" broken in 10.0?

Dave Mischler dave at mischler.com
Tue Feb 11 00:23:02 UTC 2014


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?

Example:

On one session, listen for an incoming connection:

% nc -l 5101

On another session, open an outgoing connection, then close the input:

% nc 127.0.0.1 5101
^D

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.




More information about the freebsd-stable mailing list