pgpool2.git / summary / log / commit / refs

commit    9f6a57bc3b46600922d63e151d3f612be37a6ebc
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Mon May 24 07:25:35 2010 +0000

    Fix bug with pcp_check_fd()'s timeout handling.
    Per erboles.
    
    Subject: [Pgpool-general] question about pcp_check_fd
    Date: Sun, 23 May 2010 18:21:41 -0500
    To: pgpool <pgpool-general@pgfoundry.org>


pcp/pcp_stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcp/pcp_stream.c b/pcp/pcp_stream.c index f1192b2e0..2b17aebfd 100644 --- a/pcp/pcp_stream.c +++ b/pcp/pcp_stream.c @@ -4,7 +4,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2008 PgPool Global Development Group + * Copyright (c) 2003-2010 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -352,7 +352,7 @@ pcp_check_fd(PCP_CONNECTION *pc, int notimeout) FD_SET(fd, &readmask); FD_SET(fd, &exceptmask); - if (notimeout || (pcp_timeout.tv_sec + pcp_timeout.tv_usec == 0)) + if (notimeout || (pcp_timeout.tv_sec + pcp_timeout.tv_usec) == 0) tp = NULL; else { [parent: da8107bf2261]