[Pgpool-committers] pgpool - pgpool-II: Check frontend connection while waiting for response

User T-ishii t-ishii at pgfoundry.org
Mon Jul 20 11:47:43 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.

Tags:
----
V2_2_STABLE

Modified Files:
--------------
    pgpool-II:
        child.c (r1.26.2.1 -> r1.26.2.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/child.c?r1=1.26.2.1&r2=1.26.2.2)
        pool.h (r1.36.2.1 -> r1.36.2.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool.h?r1=1.36.2.1&r2=1.36.2.2)
        pool_process_query.c (r1.141.2.7 -> r1.141.2.8)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_process_query.c?r1=1.141.2.7&r2=1.141.2.8)
        pool_proto_modules.c (r1.6.2.2 -> r1.6.2.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto_modules.c?r1=1.6.2.2&r2=1.6.2.3)
        pool_proto_modules.h (r1.1 -> r1.1.2.1)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto_modules.h?r1=1.1&r2=1.1.2.1)


More information about the Pgpool-committers mailing list