pgpool2.git / summary / log / commit / refs

commit    3dcf0f737d9c8ed0cfae1187c39b409d48d30666
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Sat May 02 08:42:48 2009 +0000

    Call pool_send_frontend_exits() before pool_discard_cp() when
    resetting connection fails. This will avoid "unexpected EOF on client
    connection" error on when pgpool client exits abnormaly


child.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/child.c b/child.c index fdc2cac86..c907c19fb 100644 --- a/child.c +++ b/child.c @@ -457,7 +457,11 @@ void do_child(int unix_fd, int inet_fd) * this connection since it might be in unknown status */ if (status1 != POOL_CONTINUE) + { + pool_debug("error in resetting connections. discarding connection pools..."); + pool_send_frontend_exits(backend); pool_discard_cp(sp->user, sp->database, sp->major); + } else pool_connection_pool_timer(backend); } [parent: 86969a305224]