Reduced ping timeout

This commit is contained in:
r.kuznetsov 2019-07-25 14:53:56 +03:00 committed by Aleksey Belousov
parent 3b3a48c8db
commit c458bf8429

View file

@ -644,7 +644,7 @@ void BookmarkCatalog::Ping(PingCallback && callback) const
{
platform::HttpClient request(url);
request.SetRawHeader("User-Agent", GetPlatform().GetAppUserAgent());
uint32_t constexpr kPingTimeoutInSec = 15;
uint32_t constexpr kPingTimeoutInSec = 10;
request.SetTimeout(kPingTimeoutInSec);
if (request.RunHttpRequest())
{