Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

From: "Daniel Westermann (DWE)" <daniel(dot)westermann(at)dbi-services(dot)com>
To: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Date: 2024-10-29 20:00:47
Message-ID: GV0P278MB04192D0C51E525B5D6443691D24B2@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>Maybe check that "files" is the first mechanism for hosts lookups in nsswitch.conf.

>afaik dig doesn't follow the same name resolution path as glibc.

I don't know. Is there a way to test the glibc way easily?

> a connection received should mean resolution was done, right ? am i missing something?

>Well, I'm just throwing out something to check, but I meant on the server, not the client. It's trying to resolve >"localhost" to check the auth. If there's a delay, that's probably where it is.

>I guess I just assumed that's where you were testing dig.

Yes

Regards
Daniel

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Westermann (DWE) 2024-10-29 20:03:50 Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba
Previous Message Daniel Westermann (DWE) 2024-10-29 19:55:50 Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba