public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tatsuo Ishii <[email protected]>
To: [email protected]
Subject: Re: Close listening socokets before forking
Date: Mon, 09 Mar 2026 18:20:31 +0900 (JST)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

> Currently when pgpool main process forks sub processes (child process
> - user session process, pcp_main process, health check process,
> streaming replication check process and life check process), they
> inherits pgpool and pcp listening sockets. However some of processes
> do not need those sockets:
> 
> - child process - pcp sockets are unnecessary
> - pcp main process - pgpool sockets are unnecessary
> - health check, streaming replication check and life check process -
>   pgpool and pcp sockets are unnecessary
> 
> It could be potential problem when those process go down. Since they
> may keep the listening sockets for a while, which prevents next pgpool
> starting up from binding those ports.
> 
> Attached patch closes those unnecessary sockets after forking. For
> this purpose new function close_listening_sockets() is introduced.

Pushed down to v4.4 (v4.3 was hard to port the patch).

Best regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp






reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Close listening socokets before forking
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox