Azure / azure-sdk-for-rust

This repository is for active development of the *unofficial* Azure SDK for Rust. This repository is *not* supported by the Azure SDK team.
MIT License
696 stars 241 forks source link

Hyper client hang in container #1549

Closed tierriminator closed 9 months ago

tierriminator commented 9 months ago

I've been hit with random client hangs recently when deploying an application, which uses azure blob storage, to a kubernetes cluster. I've tracked it down to hyperium/hyper#2312, which affects reqwest and therefore also this repo. The workaround is setting pool_max_idle_per_host(0) for the client.

demoray commented 9 months ago

@tierriminator good catch. I was experiencing the same issue yesterday and had not tracked down why yet. Making this change addressed the issue for me as well.

You can work around it by creating your own HttpClient, but that isn't the most ergonomic.

I'll submit a PR for this shortly.