提交 ec64390e 编写于 作者: B Bruce Momjian

Fix from Joe on timeout code.

上级 6b0e1666
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.211 2002/10/16 02:55:30 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.212 2002/10/16 04:38:00 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1076,7 +1076,7 @@ connectDBComplete(PGconn *conn) ...@@ -1076,7 +1076,7 @@ connectDBComplete(PGconn *conn)
finish_time = time(NULL) + timeout; finish_time = time(NULL) + timeout;
} }
while (finish_time == -1 || time(NULL) >= finish_time) while (finish_time == -1 || time(NULL) < finish_time)
{ {
/* /*
* Wait, if necessary. Note that the initial state (just after * Wait, if necessary. Note that the initial state (just after
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册