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

Commit54aaef8

Browse files
committed
Revert all keepalive moves, reevaluate.
1 parent3f10d21 commit54aaef8

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(intidle,Port*port)
13481348
{
1349-
#ifdefTCP_KEEPIDLE
13501349
if (port==NULL||IS_AF_UNIX(port->laddr.addr.ss_family))
13511350
returnSTATUS_OK;
13521351

1352+
#ifdefTCP_KEEPIDLE
13531353
if (idle==port->keepalives_idle)
13541354
returnSTATUS_OK;
13551355

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

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

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

1496+
#ifdefTCP_KEEPCNT
14971497
if (count==port->keepalives_count)
14981498
returnSTATUS_OK;
14991499

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp