[Pgpool-committers] pgpool - pgpool-II: Check frontend connection while waiting for response
User T-ishii
t-ishii at pgfoundry.org
Mon Jul 20 12:21:54 UTC 2009
Log Message:
-----------
Check frontend connection while waiting for response from backend.
This is done in wait_for_query_response() by writing a dummy parameter
status packet to pgpool client every 1 second. If the write fails, a
cancel packet is sent to backend to free backend.
This is usefull to prevent pgpool child from waiting forever for
backend response. Pgpool client will diconnect to pgpool if the query
takes too long. This is typical use case for Web applications.
Modified Files:
--------------
pgpool-II:
child.c (r1.27 -> r1.28)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/child.c?r1=1.27&r2=1.28)
pool.h (r1.37 -> r1.38)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool.h?r1=1.37&r2=1.38)
pool_process_query.c (r1.148 -> r1.149)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_process_query.c?r1=1.148&r2=1.149)
pool_proto_modules.c (r1.9 -> r1.10)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto_modules.c?r1=1.9&r2=1.10)
pool_proto_modules.h (r1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto_modules.h?r1=1.1&r2=1.2)
More information about the Pgpool-committers
mailing list