Skip to content

Commit 45d9d90

Browse files
committed
Move TCP keepalive macro definition
Jaime Casanova
1 parent a6c1cea commit 45d9d90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 2 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.205 2010/02/26 02:00:43 momjian Exp $
33+
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.206 2010/03/13 15:35:46 momjian Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -1418,10 +1418,10 @@ pq_getkeepalivesinterval(Port *port)
14181418
int
14191419
pq_setkeepalivesinterval(int interval, Port *port)
14201420
{
1421+
#ifdef TCP_KEEPINTVL
14211422
if (port == NULL || IS_AF_UNIX(port->laddr.addr.ss_family))
14221423
return STATUS_OK;
14231424

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

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