diff --git a/net/Socket.cpp b/net/Socket.cpp index 31ad77c6c..1bf847cba 100644 --- a/net/Socket.cpp +++ b/net/Socket.cpp @@ -143,6 +143,9 @@ void SocketDisposition::execute() _socketMove = nullptr; } +const int WebSocketHandler::InitialPingDelayMs = 25; +const int WebSocketHandler::PingFrequencyMs = 18 * 1000; + void WebSocketHandler::dumpState(std::ostream& os) { os << (_shuttingDown ? "shutd " : "alive ") diff --git a/net/WebSocketHandler.hpp b/net/WebSocketHandler.hpp index d981ab4df..b363364fd 100644 --- a/net/WebSocketHandler.hpp +++ b/net/WebSocketHandler.hpp @@ -40,8 +40,8 @@ protected: static const unsigned char Mask = 0x80; }; - static const int InitialPingDelayMs = 25; - static const int PingFrequencyMs = 18 * 1000; + static const int InitialPingDelayMs; + static const int PingFrequencyMs; public: WebSocketHandler() : diff --git a/wsd/Admin.cpp b/wsd/Admin.cpp index 8add69566..41407d071 100644 --- a/wsd/Admin.cpp +++ b/wsd/Admin.cpp @@ -44,6 +44,9 @@ using Poco::Net::HTTPResponse; using Poco::StringTokenizer; using Poco::Util::Application; +const int Admin::MinStatsIntervalMs = 50; +const int Admin::DefStatsIntervalMs = 2500; + /// Process incoming websocket messages void AdminSocketHandler::handleMessage(bool /* fin */, WSOpCode /* code */, std::vector &payload) diff --git a/wsd/Admin.hpp b/wsd/Admin.hpp index e3386952b..571979401 100644 --- a/wsd/Admin.hpp +++ b/wsd/Admin.hpp @@ -153,8 +153,8 @@ private: DocProcSettings _defDocProcSettings; // Don't update any more frequently than this since it's excessive. - static const int MinStatsIntervalMs = 50; - static const int DefStatsIntervalMs = 2500; + static const int MinStatsIntervalMs; + static const int DefStatsIntervalMs; }; #endif