mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +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);
|
pthread_mutex_lock(&mLock);
|
||||||
if (mIndex < mMaxHandlers - 1) {
|
if (mIndex < mMaxHandlers - 1) {
|
||||||
mHandlers[++mIndex] = h;
|
mHandlers[++mIndex] = h;
|
||||||
|
curl_easy_reset(h);
|
||||||
needCleanup = false;
|
needCleanup = false;
|
||||||
S3FS_PRN_DBG("Return handler to pool: %d", mIndex);
|
S3FS_PRN_DBG("Return handler to pool: %d", mIndex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user