(http client) fix deadlock when following redirects

This commit is contained in:
Benjamin Sergeant
2020-06-19 00:11:06 -07:00
parent 9bb3643fc7
commit 10c014bf98
4 changed files with 9 additions and 3 deletions

View File

@ -127,7 +127,7 @@ namespace ix
{
// We only have one socket connection, so we cannot
// make multiple requests concurrently.
std::lock_guard<std::mutex> lock(_mutex);
std::lock_guard<std::recursive_mutex> lock(_mutex);
uint64_t uploadSize = 0;
uint64_t downloadSize = 0;