amd64/185353: nc does not exit after transfer
rol at robert-eckardt.de
Mon Dec 30 22:50:02 UTC 2013
>Synopsis: nc does not exit after transfer
>Arrival-Date: Mon Dec 30 22:50:01 UTC 2013
Live-CD from memstick
nc is supposed to close connection after file transfer as described in man page.
machineA or TerminalB $ nc -l 12345 > foo.txt
machineC or TerminalD $ nc machineA 12345 < bar.txt
The connection in the example above hangs until nc is interrupted on one side.
Adding -d (don't read from stdin) on the listening side is ignored.
Redirecting input from /dev/null (nc -l 12345 > foo.txt < /dev/null) on the listening side aborts before the whole file (200k in my case) was transfered.
This happens also from 10.0-RC3 -> 9.1-R, but not the other way round.
More information about the freebsd-amd64