Commit 08b8b27e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More detail on write errors.

parent 0d505501
......@@ -143,7 +143,8 @@ http_write(const struct http *hp, int lvl, const char *pfx)
vtc_dump(hp->vl, lvl, pfx, VSB_data(hp->vsb), VSB_len(hp->vsb));
l = write(hp->fd, VSB_data(hp->vsb), VSB_len(hp->vsb));
if (l != VSB_len(hp->vsb))
vtc_log(hp->vl, 0, "Write failed: %s", strerror(errno));
vtc_log(hp->vl, 0, "Write failed: (%d vs %d) %s",
l, VSB_len(hp->vsb), strerror(errno));
}
/**********************************************************************
......
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