Date: Wed, 22 Apr 2020 10:01:25 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 245817] sendto() can return ENOTCONN on SOCK_STREAM unix socket, which is not documented Message-ID: <bug-245817-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245817 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=213673&action=edit 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() may 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 -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245817-227>
