[pgpool-general: 1230] Re: pgpool 3.2.1 - Health check failing to connect
Mikola Rose
mrose at power-soft.com
Wed Dec 5 09:04:12 JST 2012
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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pgpool.net/pipermail/pgpool-general/attachments/20121205/c7fb9e60/attachment.htm>
More information about the pgpool-general
mailing list