ninenines / gun

HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP.
ISC License
891 stars 232 forks source link

client_preferred_next_protocols is incompatible with TLS 1.3 #323

Closed JeppeTh closed 3 months ago

JeppeTh commented 6 months ago

It's not possible to run TLS 1.3 only for Gun since client_preferred_next_protocols is incompatible. You get

                       {error,
                        {options,dependency,
                         {client_preferred_next_protocols,
                          {versions,[tlsv1,'tlsv1.1','tlsv1.2']}}}}},

when trying. I.e. should avoid providing this one if versions are ['tlsv1.3'].

essen commented 3 months ago

This was fixed in Gun 2.1. Thanks!