curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl won't reuse connections (using curl_easy)

From: Philip Tellis via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 14 Jul 2020 12:31:27 -0400

On Tue, 14 Jul 2020 at 12:20, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 13 Jul 2020, Philip Tellis via curl-users wrote:
>
> > I'm writing code with the curl_easy interface, and am having a hard time
> > getting it to reuse connections. Details below.
>
> You would be better off asking libcurl questions on the curl-library list,
> not
> this - which is focused on the curl tool.
>
>
Thanks, I'll go join that list too.

> > * Connection #0 is still name resolving, can't reuse
>
> This looks like a bug. I can't remember us having fixed such a problem but
> I
> also don't think you'll see this if you upgrade to a more recent libcurl
> version.
>

I figured out the problem, it is with TCP_FASTOPEN. If I turn off
TCP_FASTOPEN, then connections are reused.

Philip

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-14