From 0e0e2aa5dfb76b60f52fb1245fdc414763ad74b6 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 21 Sep 2021 12:56:12 +0200 Subject: Added human-friendly formatting of response send errors --- zenhttp/httpsys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 7ce970d15..cc56b484f 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -553,7 +553,7 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode) CancelThreadpoolIo(Iocp); - ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: {}", SendResult, HttpReq->pRawUrl); + ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: '{}'", GetWindowsErrorAsString(SendResult), HttpReq->pRawUrl); ErrorCode = MakeWin32ErrorCode(SendResult); } -- cgit v1.2.3 From 59540ce7c83de28e757dccbbc8e65f4c554dadda Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Tue, 21 Sep 2021 13:00:26 +0200 Subject: Clang format fix. --- zenhttp/httpsys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 7ce970d15..04dccc97b 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -1256,7 +1256,7 @@ InitialRequestHandler::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesT case ERROR_OPERATION_ABORTED: return nullptr; - case ERROR_MORE_DATA: // Insufficient buffer space + case ERROR_MORE_DATA: // Insufficient buffer space case NO_ERROR: break; } -- cgit v1.2.3