From a03dea30870e4af3e91c2468c0296cbc3ddf5196 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Fri, 2 Mar 2018 16:13:18 +0300 Subject: [local_ads] set network timeout to 5 seconds --- local_ads/statistics.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'local_ads') 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"); -- cgit v1.2.3