Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2020 10:01:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 245817] sendto() can return ENOTCONN on SOCK_STREAM unix socket, which is not documented
Message-ID:  <bug-245817-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245817

            Bug ID: 245817
           Summary: sendto() can return ENOTCONN on SOCK_STREAM unix
                    socket, which is not documented
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: knan-bfo@modirum.com
                CC: doc@FreeBSD.org
 Attachment #213673 text/plain
         mime type:

Created attachment 213673
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D213673&action=
=3Dedit
Minimal test program

send(2) manpage currently states "The send() function may be used only when=
 the
 socket is in a connected state, while sendto(), sendmsg() and sendmmsg() m=
ay
be used at any time."

This seems inaccurate. Doing a sendto() on an unconnected SOCK_STREAM unix
socket results in an ENOTCONN error. ENOTCONN is not a documented possible
error from sendto.

Small c testcase showing the behaviour attached.

Suggested manpage patch submitted:
https://reviews.freebsd.org/D24530

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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