r4156 - branches/sky/log_error/varnish-cache/bin/varnishd

sky at projects.linpro.no sky at projects.linpro.no
Tue Jul 28 22:08:29 CEST 2009


Author: sky
Date: 2009-07-28 22:08:29 +0200 (Tue, 28 Jul 2009)
New Revision: 4156

Modified:
   branches/sky/log_error/varnish-cache/bin/varnishd/cache_fetch.c
Log:
Warn about session overflow and read error maybe this should be in HTC_Rx but that doesn't have access to sp for good reasons the other return (__LINE__) in FetchHdr all have error messages in their path -- though maybe we should have some here to make it clearer what is going on?

Modified: branches/sky/log_error/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- branches/sky/log_error/varnish-cache/bin/varnishd/cache_fetch.c	2009-07-28 19:39:57 UTC (rev 4155)
+++ branches/sky/log_error/varnish-cache/bin/varnishd/cache_fetch.c	2009-07-28 20:08:29 UTC (rev 4156)
@@ -377,6 +377,12 @@
 
 	if (i < 0) {
 		VBE_ClosedFd(sp);
+		if (i == -2)
+			WSL(sp->wrk, SLT_Debug, sp->fd, "Session workspace overflow (%s:%d)",
+			    __FILE__, __LINE__);
+		if (i == -1)
+			WSL(sp->wrk, SLT_Debug, sp->fd, "Read error (%s:%d)",
+			    __FILE__, __LINE__);
 		/* XXX: other cleanup ? */
 		return (__LINE__);
 	}



More information about the varnish-commit mailing list