[pgpool-general: 1232] Re: pgpool 3.2.1 - Health check failing to connect

Tatsuo Ishii ishii at postgresql.org
Wed Dec 5 09:09:24 JST 2012


Thanks for report. Glad to hear that!
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

> Awesome man ,  that worked great!
> 
> many thanks!
> 
> 
> On 2012-12-04, at 3:35 PM, Tatsuo Ishii <ishii at postgresql.org<mailto:ishii at postgresql.org>>
>  wrote:
> 
> diff --git a/pool_connection_pool.c b/pool_connection_pool.c
> index 05cf496..5b9f909 100644
> --- a/pool_connection_pool.c
> +++ b/pool_connection_pool.c
> @@ -566,6 +566,12 @@ int connect_inet_domain_socket_by_port(char *host, int port, bool retry)
> 
> if (connect(fd, (struct sockaddr *)&addr, len) < 0)
> {
> + if (errno == EISCONN)
> + {
> + /* Socket is already connected */
> + break;
> + }
> +
> if ((errno == EINTR && retry) || errno == EAGAIN)
> continue;
> 


More information about the pgpool-general mailing list