Re: slower connect from hostnossl clients

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: slower connect from hostnossl clients
Date: 2016-06-07 13:26:11
Message-ID: 32274.1465305971@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> One thing that could be taking the time is an extra roundtrip -- e.g. it
> tries to connect with ssl fails and retries without.

I'd assume a priori that that's it. If so, the fix is to configure libpq
to try non-SSL first not SSL first. There is an option for that, IIRC.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ants Aasma 2016-06-07 13:56:48 WIP: Data at rest encryption
Previous Message Amit Langote 2016-06-07 12:49:23 Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116