From: | Richard Crampton <rich(dot)crampton(at)gmail(dot)com> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #16897: gssenc request slow connection |
Date: | 2021-02-25 18:46:57 |
Message-ID: | CAL_nAvU+uUmEwpE3ZwcbAszGXtjaCoy8YwaTbH_SLnFHp8pniA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi,
The libpq version is 12.2. I've attached two images of the packets
transferred on a connection to my db with gssenc=prefer and
gssenc=disable. The client is 10.64.0.3 and the host is 10.64.0.7.
In the gssenc image packet 3155 is the gssenc request. I don't know what
the NBNS packets are doing but they seem to be the cause of the delay.
Cols: No, Time, Source, Destination, Protocol, Length, Info
Thx,
Richard
On Thu, 25 Feb 2021 at 17:43, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> Greetings,
>
> * PG Bug reporting form (noreply(at)postgresql(dot)org) wrote:
> > Email address: rich(dot)crampton(at)gmail(dot)com
> > PostgreSQL version: 12.6
> > Operating system: client Windows 10, postgresql server Ubuntu
> > Description:
> >
> > When connecting over a local network from Windows 10 to PostgreSQL server
> > (Linux version 12.6 default install) the gssencmode=prefer in libpq
> > connection causes a big slowdown.
> >
> > With "gssencmode=prefer" connection takes 4 seconds.
> > With "gssencmode=disable" connection as fast as normal.
> >
> > As the prefer option is the default option this causes problems in
> dependent
> > libraries such as psycopg2 for Python. First raised the bug here
> > https://github.com/psycopg/psycopg2/issues/1242 but I think this must
> be a
> > libpq/Postgresql bug since psycopg2 is just passing along the request.
>
> What's the version of the libpq library on the client side..? In
> general, while there's an extra packet back and forth because Kerberos /
> GSSAPI is set up on the client / Windows side, once the server says it
> doesn't support GSSENC, libpq should try a non-GSSENC connection right
> away..
>
> Thanks,
>
> Stephen
>
Attachment | Content-Type | Size |
---|---|---|
gssenc.JPG | image/jpeg | 234.5 KB |
nogssenc.JPG | image/jpeg | 86.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2021-02-25 18:58:26 | Re: BUG #16897: gssenc request slow connection |
Previous Message | David Steele | 2021-02-25 17:53:44 | Re: BUG #16894: PANIC: WAL contains references to invalid pages |