lkml.org 
[lkml]   [1999]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Slow name-server lookups
Date
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.051 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site