summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http/websocket.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/http/websocket.hpp b/http/websocket.hpp
index 40fbcc01b4..30a9b9f4b5 100644
--- a/http/websocket.hpp
+++ b/http/websocket.hpp
@@ -78,6 +78,9 @@ class ConnectionImpl : public Connection
closeHandler(std::move(closeHandler)),
errorHandler(std::move(errorHandler)), session(reqIn.session)
{
+ /* Turn on the timeouts on websocket stream to server role */
+ ws.set_option(boost::beast::websocket::stream_base::timeout::suggested(
+ boost::beast::role_type::server));
BMCWEB_LOG_DEBUG << "Creating new connection " << this;
}