elixir-mint / mint

Functional HTTP client for Elixir with support for HTTP/1 and HTTP/2 🌱
Apache License 2.0
1.36k stars 112 forks source link

:reuse_sessions option is incompatible with TLS v1.3 #313

Closed lukebakken closed 3 years ago

lukebakken commented 3 years ago

To reproduce:

Since mint's default is to reuse_sessions, this code throws this error:

%Mint.TransportError{reason: {:options, :dependency, {:reuse_sessions, {:versions, [:tlsv1, :"tlsv1.1", :"tlsv1.2"]}}}}

There is no way to fix this since the mere presence of the reuse_sessions option triggers the above. Setting it to false has no effect.

whatyouhide commented 3 years ago

Closed via #314. Thanks @lukebakken! 💟