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

Too many `Mint.TransportError socket closed` #417

Closed nallwhy closed 9 months ago

nallwhy commented 9 months ago

I'm using OpenAI API with Req http1 connection pool.

And too many Mint.TransportError socket closed occurs.

Is there any tip to solve this problem?

whatyouhide commented 9 months ago

This has nothing to do with Mint itself, sorry 😭 The sockets getting closed can be attributed to the OS, to the network on your side, or to the network on their side. Thanks!

wojtekmach commented 9 months ago

Please update Req to latest, we didn’t use to but now we also automatically retry on :closed and that should help some.