mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-16 09:17:11 +00:00
Added reset curl handle when returning to handle pool
This commit is contained in:
parent
1db4739ed8
commit
e3de6ea458
@ -304,6 +304,7 @@ void CurlHandlerPool::ReturnHandler(CURL* h)
|
||||
pthread_mutex_lock(&mLock);
|
||||
if (mIndex < mMaxHandlers - 1) {
|
||||
mHandlers[++mIndex] = h;
|
||||
curl_easy_reset(h);
|
||||
needCleanup = false;
|
||||
S3FS_PRN_DBG("Return handler to pool: %d", mIndex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user