Thread: pgsql: If SSL negotiation fails and SSLMODE is 'prefer', then retry

pgsql: If SSL negotiation fails and SSLMODE is 'prefer', then retry

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
If SSL negotiation fails and SSLMODE is 'prefer', then retry without SSL.
Negotiation failure is only likely to happen if one side or the other is
misconfigured, eg. bad client certificate.  I'm not 100% convinced that
a retry is really the best thing, hence not back-patching this fix for now.
Per gripe from Sergio Cinos.

Modified Files:
--------------
    pgsql/src/interfaces/libpq:
        fe-connect.c (r1.338 -> r1.339)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c.diff?r1=1.338&r2=1.339)