r855 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Sun Aug 20 18:35:01 CEST 2006
Author: phk
Date: 2006-08-20 18:35:01 +0200 (Sun, 20 Aug 2006)
New Revision: 855
Modified:
trunk/varnish-cache/bin/varnishd/cache_pipe.c
Log:
Add some debugging
Modified: trunk/varnish-cache/bin/varnishd/cache_pipe.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pipe.c 2006-08-20 16:34:51 UTC (rev 854)
+++ trunk/varnish-cache/bin/varnishd/cache_pipe.c 2006-08-20 16:35:01 UTC (rev 855)
@@ -22,12 +22,16 @@
i = read(fds[idx].fd, buf, sizeof buf);
if (i <= 0) {
+ VSL(SLT_Debug, fds[idx].fd, "Pipe Shut read(read)");
+ VSL(SLT_Debug, fds[1-idx].fd, "Pipe Shut write(read)");
shutdown(fds[idx].fd, SHUT_RD);
shutdown(fds[1-idx].fd, SHUT_WR);
fds[idx].events = 0;
} else {
j = write(fds[1-idx].fd, buf, i);
if (i != j) {
+ VSL(SLT_Debug, fds[idx].fd, "Pipe Shut write(write)");
+ VSL(SLT_Debug, fds[1-idx].fd, "Pipe Shut read(write)");
shutdown(fds[idx].fd, SHUT_WR);
shutdown(fds[1-idx].fd, SHUT_RD);
fds[1-idx].events = 0;
More information about the varnish-commit
mailing list