cURL / Mailing Lists / curl-library / Single Mail


Re: How does libcurl maintain persistent connection for HTTP2.0

From: Daniel Stenberg <>
Date: Mon, 14 Jul 2014 17:20:35 +0200 (CEST)

On Mon, 14 Jul 2014, 志平林 wrote:

> I am using the latest libcurl 7.37.0 with HTTP2.0 enabled.I wonder if
> libcurl will leave the connection open even after all the HTTP requests have
> been performed.

Yes, libcurl does that by default for all HTTP connections.

> And what's the policy for libcurl to maintain HTTP2.0 or SPDY connection?

libcurl has no SPDY support, but it will keep HTTP/2 connections around after
use in its connection pool just like for all other protocols.

So far, we have no multiplexing implemented in libcurl so each new HTTP2
connection will be a real tcp connection with a single stream.


List admin:
Received on 2014-07-14