1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

* Update to 1.5.2 [1]

* Add patch to use TCP_KEEP{CNT, IDLE, INTVL, ALIVE} [2]

Changes:	http://pgfoundry.org/forum/forum.php?forum_id=1885
PR:		ports/169463 [1]
Submitted by:	Dmitry <dmitry2004@yandex.ru> [1],
		Oleg A. Mamontov <oleg@mamontov.net> [2]
This commit is contained in:
Sergey Skvortsov 2012-07-01 08:50:48 +00:00
parent 0e6c83afe5
commit 93da9d0173
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300308
4 changed files with 51 additions and 5 deletions

View File

@ -6,9 +6,9 @@
#
PORTNAME= pgbouncer
PORTVERSION= 1.5.1
PORTVERSION= 1.5.2
CATEGORIES= databases
MASTER_SITES= http://pgfoundry.org/frs/download.php/3240/
MASTER_SITES= http://pgfoundry.org/frs/download.php/3293/
MAINTAINER= skv@FreeBSD.org
COMMENT= Lightweight connection pooler for PostgreSQL

View File

@ -1,2 +1,2 @@
SHA256 (pgbouncer-1.5.1.tar.gz) = d0634253d319e43ebc18cb0476ba28c47803eff5bae5c6e17f650dc031fc4434
SIZE (pgbouncer-1.5.1.tar.gz) = 334413
SHA256 (pgbouncer-1.5.2.tar.gz) = f17ebf1dfe34dd4c39c2dd861d5b58f08cecef22be3b74da256d25ea15d451f8
SIZE (pgbouncer-1.5.2.tar.gz) = 335338

View File

@ -0,0 +1,46 @@
--- src/util.c.orig 2011-12-07 15:04:13.000000000 +0400
+++ src/util.c 2011-12-07 15:04:07.000000000 +0400
@@ -126,7 +126,7 @@
res = setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val));
if (res < 0)
goto fail;
-#ifdef __linux__
+#ifdef TCP_KEEPCNT
/* set count of keepalive packets */
if (cf_tcp_keepcnt > 0) {
val = cf_tcp_keepcnt;
@@ -134,6 +134,8 @@
if (res < 0)
goto fail;
}
+#endif
+#ifdef TCP_KEEPIDLE
/* how long the connection can stay idle before sending keepalive pkts */
if (cf_tcp_keepidle) {
val = cf_tcp_keepidle;
@@ -141,6 +143,8 @@
if (res < 0)
goto fail;
}
+#endif
+#ifdef TCP_KEEPINTVL
/* time between packets */
if (cf_tcp_keepintvl) {
val = cf_tcp_keepintvl;
@@ -148,7 +152,7 @@
if (res < 0)
goto fail;
}
-#else
+#endif
#ifdef TCP_KEEPALIVE
if (cf_tcp_keepidle) {
val = cf_tcp_keepidle;
@@ -157,7 +161,6 @@
goto fail;
}
#endif
-#endif
}
/* set in-kernel socket buffer size */

View File

@ -1,3 +1,3 @@
Lightweight connection pooler for PostgreSQL.
WWW: https://developer.skype.com/SkypeGarage/DbProjects/PgBouncer
WWW: http://pgfoundry.org/projects/pgbouncer/