diff options
Diffstat (limited to 'src/zenhttp/servers/httpparser.h')
| -rw-r--r-- | src/zenhttp/servers/httpparser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenhttp/servers/httpparser.h b/src/zenhttp/servers/httpparser.h index 219ac351d..bdbcab4d9 100644 --- a/src/zenhttp/servers/httpparser.h +++ b/src/zenhttp/servers/httpparser.h @@ -9,6 +9,8 @@ ZEN_THIRD_PARTY_INCLUDES_START #include <http_parser.h> ZEN_THIRD_PARTY_INCLUDES_END +#include <atomic> + namespace zen { class HttpRequestParserCallbacks @@ -85,7 +87,7 @@ private: int8_t m_ContentTypeHeaderIndex; int8_t m_RangeHeaderIndex; HttpVerb m_RequestVerb; - bool m_KeepAlive = false; + std::atomic_bool m_KeepAlive{false}; bool m_Expect100Continue = false; int m_RequestId = -1; Oid m_SessionId{}; |