From 138b327a5d87d851e9a7571511d8bcf711d9aa79 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Jul 2006 13:40:33 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/storage_file.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } /*--------------------------------------------------------------------*/ -- 2.39.5