Skip to content

Commit ec64390

Browse files
committed
Fix from Joe on timeout code.
1 parent 6b0e166 commit ec64390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.211 2002/10/16 02:55:30 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.212 2002/10/16 04:38:00 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1076,7 +1076,7 @@ connectDBComplete(PGconn *conn)
10761076
finish_time = time(NULL) + timeout;
10771077
}
10781078

1079-
while (finish_time == -1 || time(NULL) >= finish_time)
1079+
while (finish_time == -1 || time(NULL) < finish_time)
10801080
{
10811081
/*
10821082
* Wait, if necessary. Note that the initial state (just after

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy