cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Direct HTTP/2 on clear TCP ( h2c )

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Mar 2016 23:37:09 +0100 (CET)

On Thu, 10 Mar 2016, Inca R wrote:

> I'm browsing the code to see where can I implement the direct http/2.
> I found in http.c around line 1794 that the code calls ( under the case
> CURL_HTTP_VERSION_2 ):
> Curl_http2_init
> Curl_http2_setup
>
> But looking at Curl_http2_setup, I see there is a call to Curl_http2_init
> again. Is this a correct flow ? Do we need to call init before setup ?

I think it is a mistake to call init before setup that we should clean up at
some point.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-03-11