From bef9b685baa605df0739f4c5fe380093db2851ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Jul 2022 18:47:49 +0300 Subject: fixes #3112 (Steam plugin will not stay connected for more than 1-2 minutes) --- protocols/Steam/src/api/poll.h | 5 ++--- protocols/Steam/src/stdafx.h | 2 +- protocols/Steam/src/version.h | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/protocols/Steam/src/api/poll.h b/protocols/Steam/src/api/poll.h index 0487411c6c..a8f0ac3edb 100644 --- a/protocols/Steam/src/api/poll.h +++ b/protocols/Steam/src/api/poll.h @@ -5,7 +5,7 @@ class PollRequest : public HttpRequest { public: PollRequest(CSteamProto *ppro) : - HttpRequest(HttpPost, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Poll/v1") + HttpRequest(HttpPost, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Poll/v0001") { timeout = (STEAM_API_TIMEOUT + 5) * 1000; // flags |= NLHRF_PERSISTENT; @@ -16,8 +16,7 @@ public: << CHAR_PARAM("access_token", ppro->getMStringA("TokenSecret")) << CHAR_PARAM("umqid", ppro->getMStringA("UMQID")) << INT64_PARAM("message", ppro->getDword("MessageID")) - << INT_PARAM("secidletime", ppro->IdleSeconds()) - << INT_PARAM("sectimeout", STEAM_API_TIMEOUT); + << INT_PARAM("secidletime", ppro->IdleSeconds()); } //{ diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h index 9f15ce8bfc..a7fa9f4406 100644 --- a/protocols/Steam/src/stdafx.h +++ b/protocols/Steam/src/stdafx.h @@ -42,7 +42,7 @@ #define MODULE "Steam" #define DB_KEY_LASTMSGTS "LastMessageTS" -#define STEAM_API_TIMEOUT 30 +#define STEAM_API_TIMEOUT 20 #define STEAM_API_IDLEOUT_AWAY 600 #define STEAM_API_IDLEOUT_SNOOZE 8000 diff --git a/protocols/Steam/src/version.h b/protocols/Steam/src/version.h index 4eef0bf165..1552f68657 100644 --- a/protocols/Steam/src/version.h +++ b/protocols/Steam/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 -#define __MINOR_VERSION 95 -#define __RELEASE_NUM 12 -#define __BUILD_NUM 2 +#define __MINOR_VERSION 96 +#define __RELEASE_NUM 1 +#define __BUILD_NUM 1 #include -- cgit v1.2.3