cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
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.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-14