r353 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu Jul 6 15:40:33 CEST 2006


Author: phk
Date: 2006-07-06 15:40:33 +0200 (Thu, 06 Jul 2006)
New Revision: 353

Modified:
   trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
Silence typical broken client connection messages and move the
interesting ones to shmem


Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c	2006-07-06 13:33:34 UTC (rev 352)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c	2006-07-06 13:40:33 UTC (rev 353)
@@ -562,9 +562,12 @@
 	    st->len, &sfh, &sent, 0);
 	if (sent == st->len + liov)
 		return;
-	printf("sent i=%d sent=%ju size=%ju liov=%ju errno=%d\n",
+	vca_close_session(sp, "remote closed");
+	if (errno == EPIPE || errno == ENOTCONN)
+		return;
+	VSL(SLT_Debug, sp->fd,
+	    "sent i=%d sent=%ju size=%ju liov=%ju errno=%d\n",
 	    i, (uintmax_t)sent, (uintmax_t)st->len, (uintmax_t)liov, errno);
-	vca_close_session(sp, "remote closed");
 }
 
 /*--------------------------------------------------------------------*/




More information about the varnish-commit mailing list