Skip to content

HTTP/2 not used with most SSL backends in 7.76 (to be fixed in 7.76.1 - April 14th) #6825

Closed

Description

@icebluey
# curl-http3 -vI --http2 https://www.cloudflare.com/
*   Trying 2606:4700::6810:7c60:443...
* Connected to www.cloudflare.com (2606:4700::6810:7c60) port 443 (#0)
* ALPN, offering http/1.1
* SSL connection using TLS1.3 / ECDHE_RSA_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
> HEAD / HTTP/1.1
> Host: www.cloudflare.com
> User-Agent: curl/7.76.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK


# curl-http3 -vI --http2-prior-knowledge https://www.cloudflare.com/
*   Trying 2606:4700::6810:7b60:443...
* Connected to www.cloudflare.com (2606:4700::6810:7b60) port 443 (#0)
* ALPN, offering http/1.1
* SSL connection using TLS1.3 / ECDHE_RSA_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
> HEAD / HTTP/1.1
> Host: www.cloudflare.com
> User-Agent: curl/7.76.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK

[curl -V output]

# curl-http3 -V
curl 7.76.0 (x86_64-pc-linux-gnu) libcurl/7.76.0 GnuTLS/3.7.1 zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 c-ares/1.17.1 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.43.0 ngtcp2/0.1.0-DEV nghttp3/0.1.0-DEV
Release-Date: 2021-03-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets zstd

Activity

  1. bagder commented on Apr 1, 2021

    @bagder
    Member

    You don't need the --http2 option. curl does HTTP/2 by default over HTTPS. Apparently it doesn't work with GnuTLS... ?

  2. changed the title [-]Cannot offer h2[/-] [+]Cannot offer h2 with GnuTLS[/+] on Apr 1, 2021
  3. romamik commented on Apr 1, 2021

    @romamik

    Same behavior with mbedtls. And same fix in mbedtls.c fixes the problem.

  4. icebluey commented on Apr 1, 2021

    @icebluey
    Author

    You don't need the --http2 option. curl does HTTP/2 by default over HTTPS. Apparently it doesn't work with GnuTLS... ?

    Yes, it doesn't offer h2 whether I use --http2 option or not.

  5. bagder commented on Apr 1, 2021

    @bagder
    Member

    Same behavior with mbedtls

    and a bunch of other TLS backends too... 😢 Time for me to ponder if this is reason enough for a patch release within soon!

  6. added a commit that references this issue on Apr 1, 2021
    cd2ff27
  7. jay commented on Apr 1, 2021

    @jay
    Member

    If you're going to do that I would wait the week to see if anything else comes up.

  8. bagder commented on Apr 1, 2021

    @bagder
    Member

    Absolutely. But I also think I can at least wait until the weekend before we make the call if we do a patch release or not.

  9. jay commented on Apr 1, 2021

    @jay
    Member

    Sure. I meant wait the regular time which is about a week or something like that.

  10. changed the title [-]Cannot offer h2 with GnuTLS[/-] [+]HTTP/2 not used with most SSL backends in 7.76 (to be fixed in 7.76.1 - April 14th)[/+] on Apr 7, 2021
  11. pinned this issue on Apr 7, 2021
  12. unpinned this issue on Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions