|
30 | 30 | * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
31 | 31 | * Portions Copyright (c) 1994, Regents of the University of California
|
32 | 32 | *
|
33 |
| - *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.207 2010/03/13 16:40:38 momjian Exp $ |
| 33 | + *$PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.208 2010/03/13 16:56:37 momjian Exp $ |
34 | 34 | *
|
35 | 35 | *-------------------------------------------------------------------------
|
36 | 36 | */
|
@@ -1346,10 +1346,10 @@ pq_getkeepalivesidle(Port *port)
|
1346 | 1346 | int
|
1347 | 1347 | pq_setkeepalivesidle(intidle,Port*port)
|
1348 | 1348 | {
|
1349 |
| -#ifdefTCP_KEEPIDLE |
1350 | 1349 | if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
|
1351 | 1350 | returnSTATUS_OK;
|
1352 | 1351 |
|
| 1352 | +#ifdefTCP_KEEPIDLE |
1353 | 1353 | if (idle==port->keepalives_idle)
|
1354 | 1354 | returnSTATUS_OK;
|
1355 | 1355 |
|
@@ -1418,10 +1418,10 @@ pq_getkeepalivesinterval(Port *port)
|
1418 | 1418 | int
|
1419 | 1419 | pq_setkeepalivesinterval(intinterval,Port*port)
|
1420 | 1420 | {
|
1421 |
| -#ifdefTCP_KEEPINTVL |
1422 | 1421 | if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
|
1423 | 1422 | returnSTATUS_OK;
|
1424 | 1423 |
|
| 1424 | +#ifdefTCP_KEEPINTVL |
1425 | 1425 | if (interval==port->keepalives_interval)
|
1426 | 1426 | returnSTATUS_OK;
|
1427 | 1427 |
|
@@ -1490,10 +1490,10 @@ pq_getkeepalivescount(Port *port)
|
1490 | 1490 | int
|
1491 | 1491 | pq_setkeepalivescount(intcount,Port*port)
|
1492 | 1492 | {
|
1493 |
| -#ifdefTCP_KEEPCNT |
1494 | 1493 | if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
|
1495 | 1494 | returnSTATUS_OK;
|
1496 | 1495 |
|
| 1496 | +#ifdefTCP_KEEPCNT |
1497 | 1497 | if (count==port->keepalives_count)
|
1498 | 1498 | returnSTATUS_OK;
|
1499 | 1499 |
|
|