From: Timo Sirainen Date: Wed, 23 May 2018 11:36:55 +0000 (+0300) Subject: lib-http: http-server: Flush output after sending 500 error for aborted request X-Git-Tag: 2.3.9~1604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=585422b5a5a96bee8b74c61766940ed0aa3f4061;p=thirdparty%2Fdovecot%2Fcore.git lib-http: http-server: Flush output after sending 500 error for aborted request It probably doesn't make a difference, but it's a bit clearer what the intent is. --- diff --git a/src/lib-http/http-server-request.c b/src/lib-http/http-server-request.c index 597912151a..b548b6abf9 100644 --- a/src/lib-http/http-server-request.c +++ b/src/lib-http/http-server-request.c @@ -190,8 +190,9 @@ void http_server_request_abort(struct http_server_request **_req, "Content-Length: 0\r\n" "\r\n"; - (void)o_stream_send(conn->conn.output, + o_stream_nsend(conn->conn.output, response, strlen(response)); + (void)o_stream_flush(conn->conn.output); } /* close the connection */