diff options
| author | Stefan Boberg <[email protected]> | 2021-09-11 17:29:47 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-11 17:29:47 +0200 |
| commit | 62ac72cad393f1685a3ea64ddf9d4399dc430452 (patch) | |
| tree | 0a00687f44eef8930fab3b2a8804c009e1ef52c6 /zenhttp/httpsys.cpp | |
| parent | Changed worker thread defaults to reflect available hardware concurrency (diff) | |
| download | zen-62ac72cad393f1685a3ea64ddf9d4399dc430452.tar.xz zen-62ac72cad393f1685a3ea64ddf9d4399dc430452.zip | |
Comment fixes, changed thread count args to unsigned
Diffstat (limited to 'zenhttp/httpsys.cpp')
| -rw-r--r-- | zenhttp/httpsys.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 00ffc51e9..1050bbbb7 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -432,6 +432,13 @@ HttpPayloadReadRequest::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytes ////////////////////////////////////////////////////////////////////////// +/** + * @brief HTTP request response I/O request handler + * + * Asynchronously streams out a response to an HTTP request via compound + * responses from memory or directly from file + */ + class HttpMessageResponseRequest : public HttpSysRequestHandler { public: @@ -507,6 +514,8 @@ HttpMessageResponseRequest::HttpMessageResponseRequest(HttpSysTransaction& InReq : HttpSysRequestHandler(InRequest) { Initialize(ResponseCode, BlobList); + + ZEN_UNUSED(ContentType); } HttpMessageResponseRequest::~HttpMessageResponseRequest() @@ -728,7 +737,7 @@ HttpMessageResponseRequest::IssueRequest() \/ \/ \/ */ -HttpSysServer::HttpSysServer(int ThreadCount) : m_ThreadPool(ThreadCount) +HttpSysServer::HttpSysServer(unsigned int ThreadCount) : m_ThreadPool(ThreadCount) { ULONG Result = HttpInitialize(HTTPAPI_VERSION_2, HTTP_INITIALIZE_SERVER, nullptr); @@ -1327,7 +1336,6 @@ InitialRequestHandler::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesT if (m_IsInitialRequest) { m_ContentLength = GetContentLength(HttpReq); - HttpVerb Verb = TranslateHttpVerb(HttpReq->Verb); if (m_ContentLength) { |