mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
More connection timeout cleanups.
This commit is contained in:
parent
4e723e6717
commit
840deabfe0
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.195 2002/08/27 14:49:52 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.196 2002/08/27 15:02:50 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1078,7 +1078,7 @@ connectDBComplete(PGconn *conn)
|
|||||||
rp = &remains;
|
rp = &remains;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (rp == NULL || remains.tv_sec > 0 || (remains.tv_sec == 0 && remains.tv_usec > 0))
|
while (rp == NULL || remains.tv_sec > 0 || remains.tv_usec > 0)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If connecting timeout is set, get current time.
|
* If connecting timeout is set, get current time.
|
||||||
@ -1347,7 +1347,7 @@ keep_going: /* We will come back to here until there
|
|||||||
|
|
||||||
if (pqGetc(&beresp, conn))
|
if (pqGetc(&beresp, conn))
|
||||||
{
|
{
|
||||||
/* We'll come back when there are more data */
|
/* We'll come back when there is more data */
|
||||||
return PGRES_POLLING_READING;
|
return PGRES_POLLING_READING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user