mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-23 13:58:24 +00:00
Fixed a bug when the pool of curl handler exceeds the upper limit
This commit is contained in:
parent
2723e1049e
commit
3f55c98a3f
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user