From: wys@... (Clemens Wyss) Date: 2001-02-20T16:40:05+09:00 Subject: [ruby-talk:11159] RE: TCPSocket.open() lasts 2 minutes (was: rwik i *hangs* in send()) Aleksi Niemel wrote in : > >I should have proper /etc/host.conf, /etc/hosts and /etc/resolv.conf. me too > >By strace:ing ruby I found out that above files are read correctly, but >instead of using localhost it goes on finding the IP from my ISP's DNS. > >matz thought it might relate to IPv6 problems, which have been (?) >patched previously. I am not so sure it's ruby's fault. See: http://www.mailgate.org/linux/linux.redhat.axp/msg00183.html 'dnsquery -s' works fine, also on my L-box! As ruby does not seem to be using dnsquery explicitly, it must be something (the libsocket.so?) dnsquery and ruby share in common. Hopefully this note gives yet another hint to Matz. > >It might help Matz and/or others if you post a complete bug report to >Bug tracking system listing various details: your system (uname -a + >other info), version of glibc (rpm -q glibc or by checking it from >filesystem), strace dump of working program (like telnet localhost) and >non-working (above ruby script), the contents of above configuration >files and everything that you could think to be useful. Or what matz >requires later. > Matz (and/or others), do you really need all this information? Clemens