Merge pull request #54438 from canhld94/fix_http_timeout

Pass http retry timeout as milliseconds
This commit is contained in:
alesapin 2023-09-20 15:21:17 +02:00 committed by GitHub
commit bfca5f735a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,7 @@ namespace
/// To avoid such a deadlock we unlock `lock` before entering `pool_ptr->second->get`.
lock.unlock();
auto retry_timeout = timeouts.connection_timeout.totalMicroseconds();
auto retry_timeout = timeouts.connection_timeout.totalMilliseconds();
auto session = pool_ptr->second->get(retry_timeout);
setTimeouts(*session, timeouts);