diff options
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | zenhttp/httpsys.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index db04c7290..ec2b541b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - `--stride` The stride to use when selecting requests to playback - `--onhost` Replay the recording inside the zenserver bypassing http overhead - `--showmethodstats` Show statistics of which RPC methods are used +- Bugfix: Make sure async responses are sent async correctly in httpsys - Improvement: FileCas now keeps an up to date index of all the entries improving performance when getting cache misses on large payloads - Changed: Exit with failure code on port conflict rather than reporting crash to Sentry diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 926e6b09f..f6f8024ca 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -1400,11 +1400,11 @@ HttpSysServerRequest::WriteResponseAsync(std::function<void(HttpServerRequest&)> { if (m_HttpTx.Server().IsAsyncResponseEnabled()) { - ContinuationHandler(m_HttpTx.ServerRequest()); + m_NextCompletionHandler = new HttpAsyncWorkRequest(m_HttpTx, std::move(ContinuationHandler)); } else { - m_NextCompletionHandler = new HttpAsyncWorkRequest(m_HttpTx, std::move(ContinuationHandler)); + ContinuationHandler(m_HttpTx.ServerRequest()); } } |