Date: Tue, 16 Dec 2014 19:10:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196035] New: Subsequent connect on ready socket returns EINVAL instead of ECONNREFUSED Message-ID: <bug-196035-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196035 Bug ID: 196035 Summary: Subsequent connect on ready socket returns EINVAL instead of ECONNREFUSED Product: Base System Version: 10.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: mnunberg@haskalah.org Created attachment 150652 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150652&action=edit Sample program to reproduce EINVAL is not a documented return code for these situations. Furthermore, the expected error code, ECONNREFUSED is not returned. If i call getsockopt(s, SOL_SOCKET, SO_ERROR, ...) _before_ the next connect, i indeed get 'ECONNREFUSED' in the error. Sample program attached: -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196035-8>