cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Inca R <incarose_at_gmail.com>
Date: Fri, 11 Mar 2016 15:12:39 -0800

Thanks;

And actually after init and setup there is a call to Curl_http2_switched,
but Curl_http2_switched calls setup :)

I think it will be enough to call Curl_http2_switched. I already made the
changes on my local test and it looks OK.

-- Diego

On Fri, Mar 11, 2016 at 2:37 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> 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
>

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