r2338 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Fri Jan 11 00:15:40 CET 2008
Author: phk
Date: 2008-01-11 00:15:39 +0100 (Fri, 11 Jan 2008)
New Revision: 2338
Modified:
trunk/varnish-cache/bin/varnishd/cache.h
Log:
Use IOV_MAX as limit if it is smaller on (HTTP_HDR_MAX * 2).
Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h 2008-01-08 14:35:09 UTC (rev 2337)
+++ trunk/varnish-cache/bin/varnishd/cache.h 2008-01-10 23:15:39 UTC (rev 2338)
@@ -58,8 +58,12 @@
HTTP_HDR_MAX = 32 /* XXX: should be #defined */
};
-/* Note: intentionally not IOV_MAX */
-#define MAX_IOVS (HTTP_HDR_MAX * 2)
+/* Note: intentionally not IOV_MAX unless it has to be */
+#if (IOV_MAX < (HTTP_HDR_MAX * 2))
+# define MAX_IOVS IOV_MAX
+#else
+# define MAX_IOVS (HTTP_HDR_MAX * 2)
+#endif
struct cli;
struct vsb;
More information about the varnish-commit
mailing list