connection failures on forked processes

From: Jim Popovitch <jim(dot)popovitch(at)replatformtech(dot)com>
To: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: connection failures on forked processes
Date: 2022-06-10 15:37:33
Message-ID: CANBrmJU72Y-9iAa253txSc3gHYOMPvGRHcPRfzt5gxMPH7Km2Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hello!

We are seeing connection failures when using "sslmode=require" on forked
connections. Attached is example code that makes 2 passes. The first pass
uses "sslmode=disable" and the second uses "sslmode=require". The first
pass completes successfully, but the second pass fails. I'm looking for
insight as to why this might be happening.

Note: we are very aware of the dev notes about forking, however know that
we are not sharing the forked connection, we simply open the connection in
the parent thread and then pass that to the child thread to use.

Thank you for any insight,

-Jim P.

Attachment Content-Type Size
pq-test.c text/plain 3.0 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2022-06-13 03:43:25 Re: connection failures on forked processes
Previous Message Yogesh Mahajan 2022-06-10 14:23:02 Re: Feature #7178 - PostgreSQL deployment on Microsoft Azure