[14642] in Athena Bugs
sun4 8.0I: connect(3n)
daemon@ATHENA.MIT.EDU (tlyu@MIT.EDU)
Fri Sep 6 05:35:15 1996
From: tlyu@MIT.EDU
To: bugs@MIT.EDU
Date: Fri, 06 Sep 1996 05:35:10 EDT
System name: tesla-coil
Type and version: SPARC/4 8.0I (1 update(s) to same version)
Display type: cgthree
What were you trying to do?
Use the connect(3n) on a UDP socket.
What's wrong:
Using send(3n) on the socket doesn't result in ECONNREFUSED in
subsequent syscalls involving the socket if there's nothing
listening on the remote end.
What should have happened:
Syscalls involving a connected UDP socket that occur after
sending to a non-listening UDP port should return
ECONNREFUSED to reflect the ICMP Port Unreachable message.
This enables an application to tell the difference between the
absence of a listener on the port or whether the listener is
not responding. Then again, this is a BSDism, so maybe it's
not really a bug from some standpoints.
Please describe any relevant documentation references:
Stevens, _Unix Network Programming_