amd64/185353: nc does not exit after transfer

Robert rol at robert-eckardt.de
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 22:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Robert
>Release:        10.0-RC3
>Organization:
>Environment:
Live-CD from memstick
>Description:
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.

>How-To-Repeat:
see description
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-amd64 mailing list