Commit b5646ee4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only check errno if write(2) failed.

Hopefully this...

Fixes	#2605
parent 7f805f17
......@@ -271,6 +271,7 @@ http1_minimal_response(struct req *req, uint16_t status)
if (wl > 0)
req->acct.resp_hdrbytes += wl;
if (wl != l) {
if (wl < 0)
VTCP_Assert(1);
if (!req->doclose)
req->doclose = SC_REM_CLOSE;
......
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