nc (netcat) in 10.1 breaks after upgrade from 9.3

2015-03-29 Thread Miroslav Lachman
nc (netcat) in 10.1 behaves differently than it was before upgrade and 
breaks our scripts for monitoring services.


For example, following command works in FreeBSD 8.4 and 9.3

echo stats | nc localhost 11211

But it hangs in 10.1 at the END and never finishes.

It must be changed to:

echo stats | nc -N localhost 11211

Is it intentional?

Miroslav Lachman
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: nc (netcat) in 10.1 breaks after upgrade from 9.3

2015-03-29 Thread Dimitry Andric
On 29 Mar 2015, at 22:53, Miroslav Lachman 000.f...@quip.cz wrote:
 
 nc (netcat) in 10.1 behaves differently than it was before upgrade and breaks 
 our scripts for monitoring services.
 
 For example, following command works in FreeBSD 8.4 and 9.3
 
 echo stats | nc localhost 11211
 
 But it hangs in 10.1 at the END and never finishes.
 
 It must be changed to:
 
 echo stats | nc -N localhost 11211
 
 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



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: nc (netcat) in 10.1 breaks after upgrade from 9.3

2015-03-29 Thread Miroslav Lachman

Dimitry Andric wrote on 03/29/2015 23:21:

On 29 Mar 2015, at 22:53, Miroslav Lachman 000.f...@quip.cz wrote:


[...]


It must be changed to:

echo stats | nc -N localhost 11211

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.


OK, thank you for your reply and sorry for the noise. :)

Miroslav Lachman
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org