Skip to content
Permalink
Browse files

proxy server: handle put session id provided after first request

  • Loading branch information
aberaud committed Jan 10, 2020
1 parent 616d6fe commit 0864ac9a39556983c78c33cac39d2f0f8bbc76de
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/dht_proxy_server.cpp
@@ -1030,6 +1030,8 @@ DhtProxyServer::put(restinio::request_handle_t request,
#endif
} else {
if (not sessionId.empty()) {
if (not pput.sessionCtx)
pput.sessionCtx = std::make_shared<PushSessionContext>();
std::lock_guard<std::mutex> l(pput.sessionCtx->lock);
pput.sessionCtx->sessionId = sessionId;
}

0 comments on commit 0864ac9

Please sign in to comment.
You can’t perform that action at this time.