Re: curl won't reuse connections (using curl_easy)
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