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?

All the best,

-Richard

-------------------------------------------
   Richard Hodges   | Matriplex, inc.
   Product Manager  | 769 Basque Way
  [EMAIL PROTECTED]  | Carson City, NV 89706
    775-886-6477    | www.matriplex.com 


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

Reply via email to