Commit 8e48a7ee authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only emit debug message for writes that fail


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3427 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 98dfa463
......@@ -124,11 +124,12 @@ WRK_Flush(struct worker *w)
CHECK_OBJ_NOTNULL(w, WORKER_MAGIC);
if (*w->wfd >= 0 && w->niov > 0 && w->werr == 0) {
i = writev(*w->wfd, w->iov, w->niov);
if (i != w->liov)
if (i != w->liov) {
w->werr++;
WSL(w, SLT_Debug, *w->wfd,
"Write error, len = %d/%d, errno = %s",
i, w->liov, strerror(errno));
WSL(w, SLT_Debug, *w->wfd,
"Write error, len = %d/%d, errno = %s",
i, w->liov, strerror(errno));
}
}
w->liov = 0;
w->niov = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment