curl-library
Re: 421 I can't accept more than 5 connections as the same user
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Jan 2014 00:36:18 +0100 (CET)
Date: Mon, 6 Jan 2014 00:36:18 +0100 (CET)
On Sat, 4 Jan 2014, Stefano D. Mtangoo wrote:
> RESPONSE: 421 Too many connections (20) from this IP
>
> Now what am doing is loop in folder, get all files and subfolders and a
> create easy handle for each and push them to multihandle and call multi's
> perform.
Right, each easy handle will run independently and thus create their own
connections.
> I have set CURLMOPT_MAXCONNECTS to 15 so at least I expected it to complain
That's not how CURLMOPT_MAXCONNECTS works. You probably want
CURLMOPT_MAX_HOST_CONNECTIONS for that, if you insist on that funny design.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-01-06