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,
> 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
> also don't think you'll see this if you upgrade to a more recent libcurl
I figured out the problem, it is with TCP_FASTOPEN. If I turn off
TCP_FASTOPEN, then connections are reused.