mirror of
https://github.com/denoland/deno.git
synced 2025-12-23 08:48:24 +00:00
|
Some checks failed
ci / pre-build (push) Has been cancelled
ci / test debug linux-aarch64 (push) Has been cancelled
ci / test release linux-aarch64 (push) Has been cancelled
ci / test debug macos-aarch64 (push) Has been cancelled
ci / test release macos-aarch64 (push) Has been cancelled
ci / bench release linux-x86_64 (push) Has been cancelled
ci / test debug linux-x86_64 (push) Has been cancelled
ci / test release linux-x86_64 (push) Has been cancelled
ci / test debug macos-x86_64 (push) Has been cancelled
ci / test release macos-x86_64 (push) Has been cancelled
ci / test debug windows-x86_64 (push) Has been cancelled
ci / test release windows-x86_64 (push) Has been cancelled
ci / lint debug linux-x86_64 (push) Has been cancelled
ci / lint debug macos-x86_64 (push) Has been cancelled
ci / lint debug windows-x86_64 (push) Has been cancelled
ci / build libs (push) Has been cancelled
ci / publish canary (push) Has been cancelled
Solution for: https://github.com/denoland/deno/issues/31080 Modern reqwest (0.12+) can safely share clients across tokio runtimes. Because it uses the current runtime's executor instead of spawning background threads. Using a single shared client prevents resource leaks when worker threads terminate. ## Context It seems that we started to use one client per thread because hyper and reqwest was not safe to share across tokio runtimes (https://github.com/denoland/deno/pull/23699). But seems it's fixed at latest reqwest versions (https://github.com/seanmonstar/reqwest/issues/1148#issuecomment-3120048532). This PR is using one client again, as we now already use the version of reqwest with this fix. |
||
|---|---|---|
| .. | ||
| args | ||
| bench | ||
| cache | ||
| js | ||
| lib | ||
| lsp | ||
| ops | ||
| rt | ||
| schemas | ||
| snapshot | ||
| standalone | ||
| tools | ||
| tsc | ||
| util | ||
| build.rs | ||
| Cargo.toml | ||
| cdp.rs | ||
| clippy.toml | ||
| deno.ico | ||
| entitlements.plist | ||
| factory.rs | ||
| file_fetcher.rs | ||
| graph_container.rs | ||
| graph_util.rs | ||
| http_util.rs | ||
| integration_tests_runner.rs | ||
| jsr.rs | ||
| main.rs | ||
| module_loader.rs | ||
| node.rs | ||
| npm.rs | ||
| README.md | ||
| registry.rs | ||
| resolver.rs | ||
| task_runner.rs | ||
| type_checker.rs | ||
| worker.rs | ||