diff options
author | Ed Tanous <edtanous@google.com> | 2023-02-28 05:20:47 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-10-16 21:02:26 +0300 |
commit | 5ebb9d33056cbffd8ec0affc49ac9e439e0c4c9e (patch) | |
tree | 20831cc8e20ebe22010fa49fb16ec57c157cea8e /include | |
parent | 480662d437e238048a56efea591dbfbae9d5d065 (diff) | |
download | bmcweb-5ebb9d33056cbffd8ec0affc49ac9e439e0c4c9e.tar.xz |
Remove extra variables in websockets
These variables don't need propagated to handlers. Any usage of them is
incorrect.
This makes Websocket once again a pure virtual class, which is desired.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Id1ecc3911fc502d436a3e6aa29024628fc51aff4
Diffstat (limited to 'include')
-rw-r--r-- | include/nbd_proxy.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nbd_proxy.hpp b/include/nbd_proxy.hpp index 5de3039765..5540886419 100644 --- a/include/nbd_proxy.hpp +++ b/include/nbd_proxy.hpp @@ -289,7 +289,7 @@ inline void } if ((endpointValue != nullptr) && (socketValue != nullptr) && - *endpointValue == conn.req.target()) + *endpointValue == conn.url().path()) { endpointObjectPath = &objectPath.str; break; @@ -305,7 +305,7 @@ inline void for (const auto& session : sessions) { - if (session.second->getEndpointId() == conn.req.target()) + if (session.second->getEndpointId() == conn.url().path()) { BMCWEB_LOG_ERROR("Cannot open new connection - socket is in use"); conn.close("Slot is in use"); |