Hi Daniel,Thanks for you reply, I have ported spdylay to libcurl and enabled 
multiplexing.But the test results of spdy performance is not good here.The 
persistent connection is not reliable, sometimes it will be dead.Especially 
when client process is killed, while server wasn't informed, then the next new 
connection could face connection timeout, which costs lots of time.
Thanks> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 14 Jul 2014 17:20:35 +0200 (CEST)
> From: Daniel Stenberg <dan...@haxx.se>
> To: libcurl development <curl-library@cool.haxx.se>
> Subject: Re: How does libcurl maintain persistent connection for
>       HTTP2.0
> Message-ID: <alpine.deb.2.00.1407141718430.7...@tvnag.unkk.fr>
> Content-Type: text/plain; charset="gb2312"; Format="flowed"
> 
> 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

Reply via email to