diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-03-02 16:13:18 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-03-05 12:02:52 +0300 |
commit | a03dea30870e4af3e91c2468c0296cbc3ddf5196 (patch) | |
tree | 546bbc6bb7e1810a6a079a85ab8de64b9e6081cc /local_ads | |
parent | 5c3ffdbbf91f0d160e3b65d325c494ae876bf924 (diff) |
[local_ads] set network timeout to 5 seconds
Diffstat (limited to 'local_ads')
-rw-r--r-- | local_ads/statistics.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp index f60782684c..629c99c4fe 100644 --- a/local_ads/statistics.cpp +++ b/local_ads/statistics.cpp @@ -356,6 +356,7 @@ void Statistics::SendToServer() ASSERT(!bytes.empty(), ()); platform::HttpClient request(url); + request.SetTimeout(5); // timeout in seconds #ifdef DEV_LOCAL_ADS_SERVER request.LoadHeaders(true); request.SetRawHeader("Host", "localads-statistics.maps.me"); |