servo/components/net/tests
Martin Robinson 036e74524a
net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863)
Instead of creating a `ROUTER` for each fetch, create a fetch thread
which handles all incoming and outcoming fetch requests. Now messages
involving fetches carry a "request id" which indicates which fetch is
being addressed by the message. This greatly reduces the number of file
descriptors used by fetch.

In addition, the interface for kicking off fetches is simplified when
using the `Listener` with `Document`s and the `GlobalScope`.

This does not fix all leaked file descriptors / mach ports, but greatly
eliminates the number used. Now tests can be run without limiting
procesess on modern macOS systems.

Followup work:

1. There are more instances where fetch is done using the old method.
   Some of these require more changes in order to be converted to the
   `FetchThread` approach.
2. Eliminate usage of IPC channels when doing redirects.
3. Also eliminate the IPC channel used for cancel handling.
4. This change opens up the possiblity of controlling the priority of
   fetch requests.

Fixes #29834.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-10-16 16:53:24 +00:00
..
parsable_mime Merge net and net_tests 2018-01-20 15:36:09 +01:00
cookie.rs Fix handling of __Secure- and __Host- Cookie prefixes (#33717) 2024-10-09 04:52:48 +00:00
cookie_http_state.rs dependencies: Upgrade cookie and rename Servo's Cookie to ServoCookie (#32861) 2024-07-26 16:13:39 +00:00
cookie_http_state_utils.py Fix remaining flake8 warnings 2020-06-21 03:34:32 +02:00
data_loader.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
fetch.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
file_loader.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
filemanager_thread.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
hsts.rs Stop using time@0.1 in Servo (#33394) 2024-09-11 07:09:56 +00:00
http_cache.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
http_loader.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
main.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
mime_classifier.rs clippy: fix warnings in components/net (#31564) 2024-03-10 15:34:16 +00:00
resource_thread.rs make protocol handlers registrable (#33104) 2024-08-22 04:11:16 +00:00
subresource_integrity.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
test.jpeg Merge net and net_tests 2018-01-20 15:36:09 +01:00