mirror of https://gitee.com/bigwinds/arangodb
as curls multihandle.h defines lets use long here. (#8950)
This commit is contained in:
parent
635ab2bb40
commit
aa885c978c
|
@ -213,7 +213,7 @@ int Communicator::work_once() {
|
|||
|
||||
// make sure there is enough room for every new request to get
|
||||
// an independent connection
|
||||
connections = connectionCount.newMaxConnections(newRequests.size());
|
||||
connections = connectionCount.newMaxConnections(static_cast<long>(newRequests.size()));
|
||||
curl_multi_setopt(_curl, CURLMOPT_MAXCONNECTS, connections);
|
||||
|
||||
for (auto& newRequest : newRequests) {
|
||||
|
|
|
@ -145,7 +145,7 @@ class ConnectionCount {
|
|||
|
||||
virtual ~ConnectionCount(){};
|
||||
|
||||
int newMaxConnections(int newRequestCount) {
|
||||
long newMaxConnections(long newRequestCount) {
|
||||
int ret_val(eMinOpenConnects);
|
||||
|
||||
for (int loop = 0; loop < eMinutesTracked; ++loop) {
|
||||
|
|
Loading…
Reference in New Issue