Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2026 19:38:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 294334] nc(1) doesn't print any error message when connection is refused
Message-ID:  <bug-294334-227-B0TsJRfcH3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294334-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294334

Dag-Erling Smørgrav <des@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
                 CC|                            |des@FreeBSD.org
             Status|New                         |Closed

--- Comment #1 from Dag-Erling Smørgrav <des@FreeBSD.org> ---
This is intentional: netcat is designed to try any number of addresses and
ports until one succeeds (for instance, if you give it a host name which
resolves to multiple addresses) and there is no correct answer to the question
of which error(s) to report in such a scenario: all, or just one?  If just one,
which one?  What if one is more significant than the others?  etc.

Use the -v option if you want explicit error messages for every failed
operation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294334-227-B0TsJRfcH3>