aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2006-07-04 04:10:58 +0800
committerseanc <seanc@FreeBSD.org>2006-07-04 04:10:58 +0800
commit1a65ef92c93a8f6b4aae41e267995190ce0fd171 (patch)
treef14185954902d58aaa9ac1aa2103a18defa89392 /databases
parent536005392c382e4813adb38e04e3f26d2c9ade30 (diff)
downloadfreebsd-ports-gnome-1a65ef92c93a8f6b4aae41e267995190ce0fd171.tar.gz
freebsd-ports-gnome-1a65ef92c93a8f6b4aae41e267995190ce0fd171.tar.zst
freebsd-ports-gnome-1a65ef92c93a8f6b4aae41e267995190ce0fd171.zip
Apply performance patch to memcached to reduce latency when a response is
being sent over two packets. http://citrin.ru/stuff/memcached/read.png http://citrin.ru/stuff/memcached/write.png Also fix a libevent versioning type-o, I'm not aware of 1.2.1 having been released. :) Bump port version. PR: ports/94997 Submitted by: Anton Yuzhaninov <citrin@rambler-co.ru>
Diffstat (limited to 'databases')
-rw-r--r--databases/memcached/Makefile4
-rw-r--r--databases/memcached/files/patch-memcached.c12
2 files changed, 14 insertions, 2 deletions
diff --git a/databases/memcached/Makefile b/databases/memcached/Makefile
index 88b0064a6595..6e980ac15097 100644
--- a/databases/memcached/Makefile
+++ b/databases/memcached/Makefile
@@ -7,7 +7,7 @@
PORTNAME= memcached
PORTVERSION= 1.1.12
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://www.danga.com/memcached/dist/ \
${MASTER_SITE_GENTOO}
@@ -16,7 +16,7 @@ MASTER_SITE_SUBDIR= distfiles
MAINTAINER= seanc@FreeBSD.org
COMMENT= High-performance distributed memory object cache system
-LIB_DEPENDS= event-1.2.1:${PORTSDIR}/devel/libevent
+LIB_DEPENDS= event-1.1a:${PORTSDIR}/devel/libevent
USE_RC_SUBR= memcached
GNU_CONFIGURE= YES
diff --git a/databases/memcached/files/patch-memcached.c b/databases/memcached/files/patch-memcached.c
new file mode 100644
index 000000000000..92e71ec748ac
--- /dev/null
+++ b/databases/memcached/files/patch-memcached.c
@@ -0,0 +1,12 @@
+--- memcached.c.orig Mon Jul 3 13:04:31 2006
++++ memcached.c Mon Jul 3 13:04:40 2006
+@@ -1146,9 +1146,7 @@
+ setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &flags, sizeof(flags));
+ setsockopt(sfd, SOL_SOCKET, SO_KEEPALIVE, &flags, sizeof(flags));
+ setsockopt(sfd, SOL_SOCKET, SO_LINGER, &ling, sizeof(ling));
+-#if !defined(TCP_NOPUSH)
+ setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, &flags, sizeof(flags));
+-#endif
+
+ /*
+ * the memset call clears nonstandard fields in some impementations