Commit 2a031b6
authored
Add a pool timeout to try to fix open File descriptor issue like deno (#2205)
Theres no pool technically but i saw this on Deno as well so we can try
this out.
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Set pool parameters in `builder()` in `mod.rs` to prevent stalling,
inspired by similar issues in Deno and other projects.
>
> - **Behavior**:
> - In `builder()` in `mod.rs`, set `pool_max_idle_per_host(0)` and
`pool_idle_timeout(Duration::from_nanos(1))` to prevent stalling in
Python.
> - References issues in `reqwest`, `deno`, `hyper`, and
`azure-sdk-for-rust` for context.
> - **Comments**:
> - Updated comments in `builder()` to explain the rationale for pool
settings and link to related issues.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 9bcb5cf. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent 07fc23f commit 2a031b6
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments