kern/31746: failed connect(2) seems to cause problems with
socket
Gleb Smirnoff
glebius at FreeBSD.org
Thu Jan 12 06:07:16 PST 2006
Synopsis: failed connect(2) seems to cause problems with socket
State-Changed-From-To: open->closed
State-Changed-By: glebius
State-Changed-When: Thu Jan 12 14:05:59 UTC 2006
State-Changed-Why:
This is a POSIX compliant behavior. Quoting
http://www.opengroup.org/onlinepubs/000095399/functions/connect.html
"If connect() fails, the state of the socket is unspecified. Conforming
applications should close the file descriptor and create a new socket
before attempting to reconnect."
http://www.freebsd.org/cgi/query-pr.cgi?pr=31746
More information about the freebsd-bugs
mailing list