[experimental-ims] de08ec0 Shave 16 bytes of the ADDR_BUFSIZE to push struct sess(+memitem) down to 512 bytes on epoll systems.
Geoff Simmons
geoff at varnish-cache.org
Tue Jan 10 00:03:34 CET 2012
commit de08ec088e0a8ca1264d0df46d037b01bdaeb091
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 2 10:48:57 2012 +0000
Shave 16 bytes of the ADDR_BUFSIZE to push struct sess(+memitem) down
to 512 bytes on epoll systems.
diff --git a/bin/varnishd/common/common.h b/bin/varnishd/common/common.h
index 7fcc7ec..f665e52 100644
--- a/bin/varnishd/common/common.h
+++ b/bin/varnishd/common/common.h
@@ -63,9 +63,10 @@ struct cli;
/**********************************************************************
* NI_MAXHOST and less so NI_MAXSERV, are ridiculously large for numeric
* representations of TCP/IP socket addresses, so we use our own.
+ * <netinet/in6.h>::INET6_ADDRSTRLEN is 46
*/
-#define ADDR_BUFSIZE 64
+#define ADDR_BUFSIZE 48
#define PORT_BUFSIZE 8
More information about the varnish-commit
mailing list