Skip to content
Snippets Groups Projects
Commit 0864ac9a authored by Adrien Béraud's avatar Adrien Béraud
Browse files

proxy server: handle put session id provided after first request

parent 616d6fe4
Branches
Tags
No related merge requests found
...@@ -1030,6 +1030,8 @@ DhtProxyServer::put(restinio::request_handle_t request, ...@@ -1030,6 +1030,8 @@ DhtProxyServer::put(restinio::request_handle_t request,
#endif #endif
} else { } else {
if (not sessionId.empty()) { if (not sessionId.empty()) {
if (not pput.sessionCtx)
pput.sessionCtx = std::make_shared<PushSessionContext>();
std::lock_guard<std::mutex> l(pput.sessionCtx->lock); std::lock_guard<std::mutex> l(pput.sessionCtx->lock);
pput.sessionCtx->sessionId = sessionId; pput.sessionCtx->sessionId = sessionId;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment