diff options
Diffstat (limited to 'src/zenhttp/httpasio.cpp')
| -rw-r--r-- | src/zenhttp/httpasio.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/zenhttp/httpasio.cpp b/src/zenhttp/httpasio.cpp index 702ca11fd..562f75e3d 100644 --- a/src/zenhttp/httpasio.cpp +++ b/src/zenhttp/httpasio.cpp @@ -214,7 +214,7 @@ private: ////////////////////////////////////////////////////////////////////////// -struct HttpServerConnection : public HttpConnectionBase, std::enable_shared_from_this<HttpServerConnection> +struct HttpServerConnection : public HttpRequestParserCallbacks, std::enable_shared_from_this<HttpServerConnection> { HttpServerConnection(HttpAsioServerImpl& Server, std::unique_ptr<asio::ip::tcp::socket>&& Socket); ~HttpServerConnection(); @@ -223,10 +223,11 @@ struct HttpServerConnection : public HttpConnectionBase, std::enable_shared_from // HttpConnectionBase implementation - virtual void HandleNewRequest() override; virtual void TerminateConnection() override; virtual void HandleRequest() override; + void HandleNewRequest(); + private: enum class RequestState { @@ -276,8 +277,6 @@ HttpServerConnection::~HttpServerConnection() void HttpServerConnection::HandleNewRequest() { - m_RequestData.Initialize(); - EnqueueRead(); } |