Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45d9d90

Browse files
committed
Move TCP keepalive macro definition
Jaime Casanova
1 parenta6c1cea commit45d9d90

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(intinterval,Port*port)
14201420
{
1421+
#ifdefTCP_KEEPINTVL
14211422
if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
14221423
returnSTATUS_OK;
14231424

1424-
#ifdefTCP_KEEPINTVL
14251425
if (interval==port->keepalives_interval)
14261426
returnSTATUS_OK;
14271427

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp