curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: Sharing connection pool amongst different handles

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Oct 2017 00:21:07 +0200 (CEST)

On Fri, 20 Oct 2017, Attila Nagy via curl-library wrote:

> It would be nice if there would be a way to share one connection pool
> between multiple curl handles. The share interface would be the natural way
> for doing this, but this isn't yet implemented.

...

> A lot of HTTP clients implement this (shared connection pool between
> threads/workers/handles), so I think it would be great if curl could also
> support this.
>
> Any ideas on this?

Sure! I think we should implement support for sharing the connection cache
with the share interface!

Done right, that should allow applications to run libcurl in N threads rather
independently, and yet have them all share the same connection cache so that
they can take advantage of existing connections.

In the same style you can already tell it to share the DNS cache.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-23