From owner-freebsd-hackers Sat May 19 11: 6:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 05B2837B43E for ; Sat, 19 May 2001 11:06:40 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id LAA86881; Sat, 19 May 2001 11:06:36 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.3/8.11.3) id f4JI5n685166; Sat, 19 May 2001 11:05:49 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200105191805.f4JI5n685166@arch20m.dellroad.org> Subject: Re: send/sendto/sendmsg and ECONNREFUSED In-Reply-To: "from Richard Hodges at May 16, 2001 01:53:57 pm" To: Richard Hodges Date: Sat, 19 May 2001 11:05:49 -0700 (PDT) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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