summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/http_request.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-07 21:24:20 +0300
committeraunsane <aunsane@gmail.com>2018-02-07 21:24:20 +0300
commita0905e751e2524f63d2468c2063191143b51785e (patch)
treea34ba66541b47c511d0e5fcb1d6088d9310b7f95 /protocols/Steam/src/http_request.h
parent18d9a96928b22e847967b41a89eec6f636a260b2 (diff)
Steam:
- set default timeout for request in 3 sec - clean geme info when contact goes offline
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r--protocols/Steam/src/http_request.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h
index 321bad5e7e..f6fe0d10ab 100644
--- a/protocols/Steam/src/http_request.h
+++ b/protocols/Steam/src/http_request.h
@@ -353,6 +353,7 @@ public:
cbSize = sizeof(NETLIBHTTPREQUEST);
requestType = method;
flags = NLHRF_HTTP11 | NLHRF_SSL;
+ timeout = 3000;
Content = new HttpContent(this);
}
@@ -363,6 +364,7 @@ public:
cbSize = sizeof(NETLIBHTTPREQUEST);
requestType = method;
flags = NLHRF_HTTP11 | NLHRF_SSL;
+ timeout = 5;
va_list formatArgs;
va_start(formatArgs, urlFormat);