elixir-mint / mint

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

FunctionClauseError when closing a conn in state :handshaking #392

Closed mruoss closed 1 year ago

mruoss commented 1 year ago

In certain cases I close a connection i have just opened. The connection is still in state :handshaking which makes Mint.HTTP2.close/1 crash with a FunctionClauseError. Is this expected behaviour?

whatyouhide commented 1 year ago

Good catch, definitely not intentional. Fixed, thanks @mruoss! 💟

whatyouhide commented 1 year ago

I released v1.5.1, which includes a fix for this. Thanks for the report @mruoss 🙏