[pgpool-hackers: 57] Any reason for disabled pcp timeout

redeamer at gmx.net redeamer at gmx.net
Thu Apr 5 14:43:25 JST 2012


Hi, 

is there a reason for the following lines in the pcp.c code:

# snip pcp/pcp.c @1373
 void
 pcp_set_timeout(long sec)
 {
        /* disable timeout (wait forever!) (2008/02/08 yamaguti) */
        sec = 0;
        pcp_timeout.tv_sec = sec;
 }

Because we use the pcp_node_info, pcp_attach_node and pcp_detach_node in a periodic monitor script which timeouts because the pcp commands (and all new pgpool connections) sometimes hang after detaching a pgpool node or after connection failures between pgpool nodes.
So, would it be save to re-enable the timeout?

regards
michael
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


More information about the pgpool-hackers mailing list