From: Roger Pack Date: 2007-08-29T03:04:39+09:00 Subject: Re: socket 10s hangs I think that did it! Thank you! Where is the documentation for this stuff??? I assume that it does a reverse lookup on every socket? If that's the case I might put in a request to ruby to only do reverse DNS when it is requested (lazily)...hmm... Joel VanderWerf wrote: > Roger Pack wrote: >> Question: anybody ever had the situation of a socket create or send that >> freezes all thread for multiples of 10s? (i.e. 10 or 20 or >> 30--exactly?) Odd, isn't it? Thanks! [note this is tcp sockets to IP >> addresses, not hostnames, so it is most likely not a DNS latency] >> -Roger > > Does it help if you do > > Socket.do_not_reverse_lookup = true > > before you start using sockets? -- Posted via http://www.ruby-forum.com/.