Skip to content

Commit 3f10d21

Browse files
committed
Move more tcp keepalive macros to be consistent.
1 parent 45d9d90 commit 3f10d21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 3 additions & 3 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.206 2010/03/13 15:35:46 momjian Exp $
33+
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.207 2010/03/13 16:40:38 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
13491350
if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
13501351
return STATUS_OK;
13511352

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy