Date: Wed, 16 May 2001 13:53:57 -0700 (PDT) From: Richard Hodges <rh@matriplex.com> To: hackers@freebsd.org Subject: send/sendto/sendmsg and ECONNREFUSED Message-ID: <Pine.BSF.4.10.10105161342470.54009-100000@mail.matriplex.com>
next in thread | raw e-mail | index | archive | help
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
rh@matriplex.com | Carson City, NV 89706
775-886-6477 | www.matriplex.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10105161342470.54009-100000>
