mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-26 22:10:06 +00:00
increase http curl pool to 128
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -43,7 +43,7 @@ struct CurlDeleter {
|
|||||||
|
|
||||||
static std::mutex gCurlPoolMutex;
|
static std::mutex gCurlPoolMutex;
|
||||||
static std::map<CURL*, bool> gCurlPool; // false = free, true = in use
|
static std::map<CURL*, bool> gCurlPool; // false = free, true = in use
|
||||||
constexpr size_t MAX_CURL_POOL_SIZE = 8;
|
constexpr size_t MAX_CURL_POOL_SIZE = 128;
|
||||||
|
|
||||||
static CURL* AcquireCurl() {
|
static CURL* AcquireCurl() {
|
||||||
std::unique_lock Lock(gCurlPoolMutex);
|
std::unique_lock Lock(gCurlPoolMutex);
|
||||||
|
|||||||
Reference in new issue
Block a user