Date: Sat, 19 May 2001 11:05:49 -0700 (PDT) From: Archie Cobbs <archie@dellroad.org> To: Richard Hodges <rh@matriplex.com> Cc: hackers@FreeBSD.ORG Subject: Re: send/sendto/sendmsg and ECONNREFUSED Message-ID: <200105191805.f4JI5n685166@arch20m.dellroad.org> In-Reply-To: <Pine.BSF.4.10.10105161342470.54009-100000@mail.matriplex.com> "from Richard Hodges at May 16, 2001 01:53:57 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 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?200105191805.f4JI5n685166>