Date: Thu, 25 Aug 2016 22:17:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 212162] netcat (nc) does not close TCP stream / exit after end of input stream Message-ID: <bug-212162-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212162 Bug ID: 212162 Summary: netcat (nc) does not close TCP stream / exit after end of input stream Product: Base System Version: 10.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: jeff@baitis.net To reproduce, use two terminals. In the first, execute: $ nc -l 2222 In the second terminal, execute: $ echo "hi" | nc localhost 2222 This command will hang. My expectation is that nc will terminate once the end of the input stream is reached. Contrast with the behaviour of socat, which seems correct. Try this command: $ echo "hi" | socat - TCP:localhost:2222 Both listener and sender processes exit. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212162-8>