From 23864c371f0c1ffe392ea5cdeb877df99a2bdac5 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Fri, 19 Feb 2021 07:41:40 +0100 Subject: [PATCH] Reserve maxLifetime for the future --- src/App.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.h b/src/App.h index 7c3dd18..53bcbd4 100644 --- a/src/App.h +++ b/src/App.h @@ -148,6 +148,8 @@ public: bool resetIdleTimeoutOnSend = false; /* A good default, esp. for newcomers */ bool sendPingsAutomatically = true; + /* Maximum socket lifetime in seconds before forced closure (defaults to disabled) */ + unsigned short maxLifetime = 0; MoveOnlyFunction *, HttpRequest *, struct us_socket_context_t *)> upgrade = nullptr; MoveOnlyFunction *)> open = nullptr; MoveOnlyFunction *, std::string_view, uWS::OpCode)> message = nullptr;