Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit840deab

Browse files
committed
More connection timeout cleanups.
1 parent4e723e6 commit840deab

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/2714:49:52 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.196 2002/08/2715: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
casePGRES_POLLING_WRITING:
1114-
if (pqWaitTimed(0,1,conn,rp))
1114+
if (pqWaitTimed(0,1,conn,rp))
11151115
{
11161116
conn->status=CONNECTION_BAD;
11171117
return0;
@@ -1347,7 +1347,7 @@ PQconnectPoll(PGconn *conn)
13471347

13481348
if (pqGetc(&beresp,conn))
13491349
{
1350-
/* We'll come back when thereare more data */
1350+
/* We'll come back when thereis more data */
13511351
returnPGRES_POLLING_READING;
13521352
}
13531353

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp