From: Ian Kent Subject: Re: Long timeout on broken DNS server Date: Wed, 26 Mar 2008 13:08:08 +0900 Message-ID: <1206504488.2969.1.camel@raven.themaw.net> References: <20080320050635.E2FA33C3B0@xena.cft.ca.us> <1205995564.30292.10.camel@raven.themaw.net> <1206329131.2993.3.camel@raven.themaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Jim Carter Cc: autofs@linux.kernel.org On Tue, 2008-03-25 at 20:34 -0700, Jim Carter wrote: > On Mon, 24 Mar 2008, Ian Kent wrote: > > On Thu, 2008-03-20 at 08:51 -0700, Jim Carter wrote: > > > On Thu, 20 Mar 2008, Ian Kent wrote: > > > > On Wed, 2008-03-19 at 22:06 -0700, Jim Carter wrote: > > > > > Today I upgraded one of my three DNS servers, the first listed in > > > > > /etc/resolv.conf, and until I got it back on the air, autofs mounting > > > > > was glacial... > --snip-- > > > > Try this patch and let me know what happens. > > Not sure it will actually make much difference. > > I've made it against the autofs in opensuse, revision 30.2. > > Patch and build were clean. I installed it on a machine running > autofs-5.0.2-30.2 and it worked. To test, I prepended to /etc/resolv.conf > a nameserver (IP address) which was known to not exist, and then > automounted something. This took 10.093 secs elapsed, corresponding to one > timeout (default length 5 secs) when autofs resolves the hostname, and a > second timeout when mount resolves the name. This is the best that can be > done. OK, I can't think of any possible side effects from this so I'll merge it. Thanks Ian