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. |
||
|---|---|---|
| .. | ||
| web_worker | ||
| bootstrap.rs | ||
| fs_events.rs | ||
| http.rs | ||
| mod.rs | ||
| permissions.rs | ||
| runtime.rs | ||
| tty.rs | ||
| web_worker.rs | ||
| worker_host.rs | ||