Date: Mon, 8 Jun 1998 14:28:02 PDT From: Bill Fenner <fenner@parc.xerox.com> To: Luoqi Chen <luoqi@watermarkgroup.com> Cc: rminnich@sarnoff.com, hackers@FreeBSD.ORG Subject: Re: ECONNREFUSED on a READ? Message-ID: <98Jun8.142803pdt.177515@crevenia.parc.xerox.com> In-Reply-To: Your message of "Mon, 08 Jun 98 12:07:07 PDT." <199806081907.PAA19671@lor.watermarkgroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Jun8.142803pdt.177515>