This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/13904] getaddrinfo does two identical queries, breaks dns round robin with two hosts


http://sourceware.org/bugzilla/show_bug.cgi?id=13904

--- Comment #4 from kjp at ci dot uchicago.edu 2012-06-29 15:10:03 UTC ---
You are the man.  Compiling with 32 changes the behavior - it just sends one
query using send().  64 bit mode does two sendto() calls.

So 32 bit mode has working IP round robin with 2 hosts, 64 bit mode doesn't.


koa@mydev ~$ gcc t.c -m32
koa@mydev ~$ strace -tt -s 100 -e send ./a.out
[ Process PID=14183 runs in 32 bit mode. ]
15:09:32.195930 send(3,
"\307\354\1\0\0\1\0\0\0\0\0\0\7gridftp\10nautilus\4nics\5xsede\3org\0\0\1\0\1",
49, MSG_NOSIGNAL) = 49




koa@mydev ~$ strace -tt -s 100 -e sendto ./a.out
15:09:45.178425 sendto(3, "\24\0\0\0\26\0\1\0039\305\355O\0\0\0\0\0\0\0\0", 20,
0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
15:09:45.182789 sendto(3,
"a]\1\0\0\1\0\0\0\0\0\0\7gridftp\10nautilus\4nics\5xsede\3org\0\0\1\0\1", 49,
MSG_NOSIGNAL, NULL, 0) = 49
15:09:45.183953 sendto(3,
"]\35\1\0\0\1\0\0\0\0\0\0\7gridftp\10nautilus\4nics\5xsede\3org\0\0\1\0\1", 49,
MSG_NOSIGNAL, NULL, 0) = 49

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]