]> err.no Git - varnish/commitdiff
Silence typical broken client connection messages and move the
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Jul 2006 13:40:33 +0000 (13:40 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Jul 2006 13:40:33 +0000 (13:40 +0000)
interesting ones to shmem

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@353 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_file.c

index c9967f4bdb7e81a3ae7d78de3eff81f1316c91e5..651ebfbbddb06e28245010c13bc25ec41eb75d02 100644 (file)
@@ -562,9 +562,12 @@ smf_send(struct storage *st, struct sess *sp, struct iovec *iov, int niov, size_
            st->len, &sfh, &sent, 0);
        if (sent == st->len + liov)
                return;
-       printf("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");
+       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);
 }
 
 /*--------------------------------------------------------------------*/