amd64/185353: nc does not exit after transfer

Robert rol at
Mon Dec 30 22:50:02 UTC 2013

>Number:         185353
>Category:       amd64
>Synopsis:       nc does not exit after transfer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 22:50:01 UTC 2013
>Originator:     Robert
>Release:        10.0-RC3
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.

see description


More information about the freebsd-amd64 mailing list