cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Avoiding creation of multiple connections to an http capable server before CURLMOPT_MAX_PIPELINE_LENGTH is reached.

From: Carlo Wood <carlo_at_alinoe.com>
Date: Fri, 31 Oct 2014 21:16:47 +0100

On Fri, 31 Oct 2014 14:57:25 +0100
Carlo Wood <carlo_at_alinoe.com> wrote:

> If every time a connection is made to (to libcurl) unknown service
> (ie, a new bundle is created) a callback to the user application
> happens where they can specify things like maximum number of
> connections and whether or not the server must be assumed to support
> pipelining, be blacklisted, or stay undetermined, then ALL of this
> would be solved wonderfully!

I implemented this callback now:
https://github.com/CarloWood/curl/commit/9c89bc1765e06db03929bf4d761bc57878eadcae

I also update my testsuite to test disconnects by the server,
and this new change allows me to wonderfully recover from that, too :)

-- 
Carlo Wood <carlo_at_alinoe.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-31