Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 840deab

Browse files
committed
More connection timeout cleanups.
1 parent 4e723e6 commit 840deab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 4 additions & 4 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.195 2002/08/27 14:49:52 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.196 2002/08/27 15:02:50 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1078,7 +1078,7 @@ connectDBComplete(PGconn *conn)
10781078
rp = &remains;
10791079
}
10801080

1081-
while (rp == NULL || remains.tv_sec > 0 || (remains.tv_sec == 0 && remains.tv_usec > 0))
1081+
while (rp == NULL || remains.tv_sec > 0 || remains.tv_usec > 0)
10821082
{
10831083
/*
10841084
* If connecting timeout is set, get current time.
@@ -1111,7 +1111,7 @@ connectDBComplete(PGconn *conn)
11111111
break;
11121112

11131113
case PGRES_POLLING_WRITING:
1114-
if (pqWaitTimed(0, 1, conn, rp))
1114+
if (pqWaitTimed(0, 1, conn, rp))
11151115
{
11161116
conn->status = CONNECTION_BAD;
11171117
return 0;
@@ -1347,7 +1347,7 @@ PQconnectPoll(PGconn *conn)
13471347

13481348
if (pqGetc(&beresp, conn))
13491349
{
1350-
/* We'll come back when there are more data */
1350+
/* We'll come back when there is more data */
13511351
return PGRES_POLLING_READING;
13521352
}
13531353

0 commit comments

Comments
 (0)