1
0
Fork 0

as curls multihandle.h defines lets use long here. (#8950)

This commit is contained in:
Wilfried Goesgens 2019-05-13 16:44:56 +02:00 committed by Jan
parent 635ab2bb40
commit aa885c978c
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {