servo/components/shared/net
Gregory Terzian b23cf9c6cd
net: clean shutdown of fetch thread (#38421)
The fetch thread is currently not shut down, meaning it is one of the
threads counted in the "threads are still running after shutdown (bad)"
counter shown when Servo has shut-down.

This PR introduces a mechanism to start, and shut-down, one fetch thread
per process that requires one.

Testing: WPT tests and unit tests(for font context). Also manually
tested loading and closing "about:blank": this change indeed brings down
the count of threads still running after shutdown by one.

Fixes: https://github.com/servo/servo/issues/34887

---------

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
2025-08-07 09:01:30 +00:00
..
fetch Use spec compliant content-type extraction in more places and enable a <stylesheet> quirk (#28321) 2025-05-19 11:38:01 +00:00
tests Implement basics of link preloading (#37036) 2025-05-29 11:26:27 +00:00
blob_url_store.rs Fix more clippy warnings in components/shared/net (#31548) 2024-03-10 17:47:38 +00:00
Cargo.toml Add support for static SVG images using resvg crate (#36721) 2025-05-27 11:02:40 +00:00
filemanager_thread.rs Don't slice a sliced blob (#36866) 2025-05-06 07:25:11 +00:00
http_status.rs Update to rust 1.85 (#35628) 2025-02-24 17:44:35 +00:00
image_cache.rs Add a basic caching mechanism for ImageKeys. (#37369) 2025-07-03 13:16:43 +00:00
indexeddb_thread.rs script: implement IDBKeyRange (#38268) 2025-07-26 02:59:15 +00:00
lib.rs net: clean shutdown of fetch thread (#38421) 2025-08-07 09:01:30 +00:00
mime_classifier.rs Implement basics of link preloading (#37036) 2025-05-29 11:26:27 +00:00
policy_container.rs Remove referrer policy from document (#34263) 2024-11-19 12:45:10 +00:00
pub_domains.rs Add memory reporting for public suffix list (#37049) 2025-05-19 18:50:22 +00:00
quality.rs Fixes for HTTP header compliance. (#32024) 2024-04-11 21:51:23 +00:00
request.rs Implement initial version of navigator.sendBeacon (#38301) 2025-08-02 15:14:07 +00:00
response.rs Use spec compliant content-type extraction in more places and enable a <stylesheet> quirk (#28321) 2025-05-19 11:38:01 +00:00
storage_thread.rs storage: Isolate sessionStorage per top-level browsing context and copy sessionStorage when creating a new auxiliary browsing context (#37803) 2025-07-04 09:15:12 +00:00