curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Initiating http 1.1 and 2.0 transfers, PRI magic seen as http method

From: Kunal Ekawde via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 30 May 2020 00:58:47 +0530

Hello All,

I'm trying to initiate http 1.1 and 2.0 transfers in mixed order to
same destination host.

Following is the diff on http2-download.c from examples on latest git
master used to reproduce this issue:
https://gist.github.com/kunalekawde/8a1ff6ecb1518f50b9834ebe03eef8c2

The server is common for both 1.1 and 2.0 with single port exposed. It
differentiates 1.1 to 2.0 using Magic frame.

The observation is that client is sending 2.0 payload on the 1.1
connection due to which server picks Magic as 1.1 message and decodes
PRI as method. This can be observed by using above example and
following tcp stream on captured pcap. Ofcourse, server needs to
handle this gracefully, but should this be seen as issue from client
to not distinguish 1.1 to 2.0 connection ?

Thanks,
~Kunal
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-29