2 May 22:48
Re: TCPSocket with multiple sub-domains - always a 60 second timeout
From: Luke Bayes <lbayes <at> patternpark.com>
Subject: Re: TCPSocket with multiple sub-domains - always a 60 second timeout
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-02 20:48:22 GMT
Subject: Re: TCPSocket with multiple sub-domains - always a 60 second timeout
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-02 20:48:22 GMT
Thanks to your response, I found this thread: http://www.ruby-forum.com/topic/138634 While the 'do_not_reverse_lookup' fix doesn't have any effect, requiring 'resolve-replace' did seem to address the problem. There was a difference in my symptoms though. These other users claimed an approximately 15 second delay, while mine is exactly 60 seconds every time. Regardless of the differences, adding the following does fix the issue: require 'resolve-replace' As per that discussion, I'll be adding this line to RubyGems in order to avoid the delays that have appeared there as well. Thanks, Luke > However, you might try: > > Socket.do_not_reverse_lookup = true > > ...in case it makes any difference? > > > Regards, > > Bill
RSS Feed