Messages in this thread | | | From | (Alan Cox) | Subject | Re: Slow name-server lookups | Date | Mon, 1 Mar 1999 19:34:21 +0000 (GMT) |
| |
> This is what glibc-2.0.6 gethostbyname() does. > > socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 > connect(3, {sin_family=AF_INET, sin_port=htons(53), > sin_addr=inet_addr("204.178.40.210")}, 16) = 0
> It takes time to establish a connection. Looking at the glibc-2.0.6 code > I see that the 'connection' is a trick to get a 'connection-refused'
The UDP connect code is just internal book-keeping not a connection over a network. So its one, fast, syscall
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |