Richard Hodges writes:
> I just spent a good half hour trying to figure out a strange problem
> with a UDP socket.  I connect()'ed the socket, and used send() to
> send small UDP packets to a server.  Real basic stuff, right?
> 
> Using tcpdump on the receiver, I could see that every other packet
> was sent successfully, the other half died in the sender.  The
> send() call returned 61, ECONNREFUSED.  This is not listed in the
> man pages, but a few minutes searching the web turned up the
> explanation - I had forgotten to start the UDP receiver...
> 
> This may be a "Well, duh!" issue for some, but I think it might be
> appropriate to add a line for ECONNREFUSED in the man pages for
> send/sendto/sendmsg.  It may be obvious, but is it _painfully_
> obvious that the ICMP reply will trigger ECONNREFUSED on the
> next packet?

Email me a man page patch and I'll review & commit it.

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to