From 83af58901d98605d6235513962883aece6232f55 Mon Sep 17 00:00:00 2001 From: MCJack123 Date: Fri, 10 Nov 2023 16:57:25 -0500 Subject: [PATCH] Fixed CI This only took three weeks to do (: --- src/apis/http.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apis/http.cpp b/src/apis/http.cpp index cb77b39d..d78cc553 100644 --- a/src/apis/http.cpp +++ b/src/apis/http.cpp @@ -1158,7 +1158,9 @@ static void websocket_client_thread(Computer *comp, const std::string& str, cons queueEvent(comp, websocket_failure, data); return; } +#if POCO_VERSION >= 0x010C0000 cs->setReceiveTimeout(Poco::Timespan(timeout * 1000000)); +#endif size_t pos = str.find('/', str.find(uri.getHost())); size_t hash = pos != std::string::npos ? str.find('#', pos) : std::string::npos; std::string path = urlEncode(pos != std::string::npos ? str.substr(pos, hash - pos) : "/");