diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-11-23 19:40:34 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-11-23 19:40:34 +0000 |
commit | b37aadb6fb078912dbf417fc166b1aeeabd1b249 (patch) | |
tree | 178b1981c61bbfa0bc2e8968415ec7ffd1a4f51e | |
parent | 44ac2cea0d7dee5b2fdd085d3a4051d844b18728 (diff) |
Steam: Disable using persistent connection for PollRequest as it causes force disconnects (thanks Vulpix for tip)
It might be reenabled in future again, we just need to make sure we're updating and cancelling it correctly in case we receive error or something. Now we remember the new response->nlc only in one branch of that if, which is obviously wrong, because we're trying to use the old nlc anyway without resetting it.
But maybe Steam servers doesn't support the polling thread with persistent connection at all, it needs to be tested further.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15762 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/Steam/src/api/poll.h | 2 | ||||
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/api/poll.h b/protocols/Steam/src/api/poll.h index a196f35f1c..8dd795a4fa 100644 --- a/protocols/Steam/src/api/poll.h +++ b/protocols/Steam/src/api/poll.h @@ -8,7 +8,7 @@ public: HttpRequest(REQUEST_POST, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Poll/v0001") { timeout = (STEAM_API_TIMEOUT + 5) * 1000; - flags |= NLHRF_PERSISTENT; + // flags |= NLHRF_PERSISTENT; CMStringA data; data.AppendFormat("access_token=%s&umqid=%s&message=%u&secidletime=%d§imeout=%d", diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 526bf5f9ce..81a58d9846 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -177,7 +177,7 @@ void CSteamProto::PollingThread(void*) while (!isTerminated && !breaked && errors < errorsLimit) { PollRequest *request = new PollRequest(token, umqId, messageId, IdleSeconds()); - request->nlc = m_pollingConnection; + // request->nlc = m_pollingConnection; HttpResponse *response = request->Send(m_hNetlibUser); delete request; @@ -215,7 +215,7 @@ void CSteamProto::PollingThread(void*) json_delete(nroot); } - m_pollingConnection = response->nlc; + // m_pollingConnection = response->nlc; } /*else if (!lstrcmpi(error, _T("Not Logged On"))) // 'else' below will handle this error, we don't need this particular check right now { |