From: Brian Candler Date: 2010-07-01T18:40:21+09:00 Subject: Re: Networking: select() blocks for seconds (> timeout) Raul Parolari wrote: > a) I do not think that there can be a DNS lookup between a 'select(x, y, > z)' and a 'socket.recvfrom'. But in Ruby, recvfrom itself (unfortunately) does a reverse DNS lookup on the IP address of the peer. You really need to turn this off. If one DNS packet gets lost, and your resolver doesn't retransmit for 10 seconds, then there's your 10 second delay. It's unlikely that the garbage collector would (a) take so long, and (b) take such a consistent amount of time. Regards, Brian. -- Posted via http://www.ruby-forum.com/.