Fixed a bug when the pool of curl handler exceeds the upper limit

This commit is contained in:
Takeshi Nakatani 2022-07-06 16:01:18 +00:00 committed by Andrew Gaul
parent 2723e1049e
commit 3f55c98a3f

View File

@ -103,7 +103,7 @@ void CurlHandlerPool::ReturnHandler(CURL* hCurl, bool restore_pool)
S3FS_PRN_DBG("Return handler to pool");
mPool.push_back(hCurl);
while(mMaxHandlers <= static_cast<int>(mPool.size())){
while(mMaxHandlers < static_cast<int>(mPool.size())){
CURL* hOldCurl = mPool.front();
mPool.pop_front();
if(hOldCurl){