From owner-freebsd-hackers Mon Jun 8 14:28:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA12536 for freebsd-hackers-outgoing; Mon, 8 Jun 1998 14:28:56 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpha.xerox.com (omega.Xerox.COM [13.1.64.95]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA12512 for ; Mon, 8 Jun 1998 14:28:44 -0700 (PDT) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <32677(2)>; Mon, 8 Jun 1998 14:28:11 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177515>; Mon, 8 Jun 1998 14:28:03 -0700 To: Luoqi Chen cc: rminnich@sarnoff.com, hackers@FreeBSD.ORG Subject: Re: ECONNREFUSED on a READ? In-reply-to: Your message of "Mon, 08 Jun 98 12:07:07 PDT." <199806081907.PAA19671@lor.watermarkgroup.com> Date: Mon, 8 Jun 1998 14:28:02 PDT From: Bill Fenner Message-Id: <98Jun8.142803pdt.177515@crevenia.parc.xerox.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks, LQ, for pointing out the SOCK_DGRAM. This is clearly the resolver library doing a DNS query to a server that's not running a name server. The connect() on a datagram socket allows errors (like ICMP port unreachable) to be delivered to the socket. You do the sendto(), you get back an ICMP port unreachable error, and that ICMP error is delivered back to you by way of the recvfrom() call. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message