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

Commit 54aaef8

Browse files
committed
Revert all keepalive moves, reevaluate.
1 parent 3f10d21 commit 54aaef8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
3131
* Portions Copyright (c) 1994, Regents of the University of California
3232
*
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 $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -1346,10 +1346,10 @@ pq_getkeepalivesidle(Port *port)
13461346
int
13471347
pq_setkeepalivesidle(int idle, Port *port)
13481348
{
1349-
#ifdef TCP_KEEPIDLE
13501349
if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
13511350
return STATUS_OK;
13521351

1352+
#ifdef TCP_KEEPIDLE
13531353
if (idle == port->keepalives_idle)
13541354
return STATUS_OK;
13551355

@@ -1418,10 +1418,10 @@ pq_getkeepalivesinterval(Port *port)
14181418
int
14191419
pq_setkeepalivesinterval(int interval, Port *port)
14201420
{
1421-
#ifdef TCP_KEEPINTVL
14221421
if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
14231422
return STATUS_OK;
14241423

1424+
#ifdef TCP_KEEPINTVL
14251425
if (interval == port->keepalives_interval)
14261426
return STATUS_OK;
14271427

@@ -1490,10 +1490,10 @@ pq_getkeepalivescount(Port *port)
14901490
int
14911491
pq_setkeepalivescount(int count, Port *port)
14921492
{
1493-
#ifdef TCP_KEEPCNT
14941493
if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
14951494
return STATUS_OK;
14961495

1496+
#ifdef TCP_KEEPCNT
14971497
if (count == port->keepalives_count)
14981498
return STATUS_OK;
14991499

0 commit comments

Comments
 (0)