servo/components/script/dom/servoparser
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
..
async_html.rs Upgrade to html5ever 0.29 and xml5ever 0.20 (#33412) 2024-09-12 11:26:36 +00:00
html.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
mod.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
prefetch.rs Support HTML parser reentrancy (#32820) 2024-08-16 16:25:50 +00:00
xml.rs Support HTML parser reentrancy (#32820) 2024-08-16 16:25:50 +00:00