From: phk Date: Thu, 6 Jul 2006 13:40:33 +0000 (+0000) Subject: Silence typical broken client connection messages and move the X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=138b327a5d87d851e9a7571511d8bcf711d9aa79;p=varnish Silence typical broken client connection messages and move the interesting ones to shmem git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@353 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index c9967f4b..651ebfbb 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -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); } /*--------------------------------------------------------------------*/