From: Bill Kelly Date: 2006-02-01T00:17:58+09:00 Subject: Re: TCP/UDP server weird lags on 1.8.4 linux Hi Caleb, From: "Caleb Tennis" > > >> Apparently that's a 5 second (5000 msec) delay? How can I find where >> that's coming from? > > I had this problem with one of my applications too. Turns out it was > trying to do name resolution, but the remote computer didn't have any > DNS info anywhere. > > I think if you throw in a TCPSocket.do_not_reverse_lookup = true, > that should fix the delay. Interesting, thanks. I added that, but the strange delay still occurs when doing UDP I/O. (The strace output looks the same, it gets stuck in poll().) I'll try to make a small program to reproduce the behavior... Regards, Bill