|
@@ -1025,11 +1025,15 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
but parsed/executed in document order; one above-fold image starts downloading
|
|
but parsed/executed in document order; one above-fold image starts downloading
|
|
|
before the script phase so it overlaps the script fetches and execution.
|
|
before the script phase so it overlaps the script fetches and execution.
|
|
|
Each helper keeps its own
|
|
Each helper keeps its own
|
|
|
- TCP/TLS connection (TLS stays per-process). Idle helpers stay warm for a
|
|
|
|
|
- same-origin navigation (reload or another page on the same host) so it
|
|
|
|
|
- reuses the TCP/TLS connection instead of paying a spawn and handshake; a
|
|
|
|
|
- navigation to another origin stops them first, so the previous page's image
|
|
|
|
|
- and TLS connections cannot stall the new fetch. Helpers also exit after
|
|
|
|
|
|
|
+ TCP/TLS connection (TLS stays per-process). Idle helpers stay warm across
|
|
|
|
|
+ navigations, so a same-origin load reuses the TCP/TLS connection and a
|
|
|
|
|
+ cross-origin job just drops the old one in `uhttp_open`; only busy helpers
|
|
|
|
|
+ are killed when the page changes. The helpers' DNS/TLS log lines (and the
|
|
|
|
|
+ browser's own `[js]` lines, since `u_tty_create()` rebinds its output) go to
|
|
|
|
|
+ a private 4 KB tty that nobody renders; the browser drains and discards it
|
|
|
|
|
+ from every poll loop (`fetch_tty_drain`), because a full tty ring blocks its
|
|
|
|
|
+ writers, and `tty_write` drops rather than sleeps when the ring's owner
|
|
|
|
|
+ writes to its own full ring. Helpers also exit after
|
|
|
ten idle seconds, and the browser stops them at once when its window loses
|
|
ten idle seconds, and the browser stops them at once when its window loses
|
|
|
focus, so raw commands can acquire the NIC. A page fetch that fails with a
|
|
focus, so raw commands can acquire the NIC. A page fetch that fails with a
|
|
|
DNS error is torn down and tried once more after half a second. The helper
|
|
DNS error is torn down and tried once more after half a second. The helper
|
|
@@ -1869,10 +1873,10 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
and private `/share/bf*N` files; images are prefetched in parallel and
|
|
and private `/share/bf*N` files; images are prefetched in parallel and
|
|
|
decoded as jobs complete. Stylesheet and external-script bodies are
|
|
decoded as jobs complete. Stylesheet and external-script bodies are
|
|
|
downloaded in parallel but parsed/executed in document order, and one
|
|
downloaded in parallel but parsed/executed in document order, and one
|
|
|
- image starts before the script phase. Idle helpers stay warm for
|
|
|
|
|
- same-origin navigations; a cross-origin navigation stops them first, as
|
|
|
|
|
- does losing focus (or ten idle seconds), so their sockets do not block raw
|
|
|
|
|
- commands or the new page. The helper requests gzip; a page
|
|
|
|
|
|
|
+ image starts before the script phase. Idle helpers stay warm across
|
|
|
|
|
+ navigations (a cross-origin job drops the old connection); losing focus
|
|
|
|
|
+ or ten idle seconds stops them, so their sockets do not block raw
|
|
|
|
|
+ commands. The helper requests gzip; a page
|
|
|
that is only small when compressed can exceed the 2 MB page/832 KB CSS
|
|
that is only small when compressed can exceed the 2 MB page/832 KB CSS
|
|
|
caps. Video/audio elements are placeholders. Bare `&` characters are
|
|
caps. Video/audio elements are placeholders. Bare `&` characters are
|
|
|
consumed by the entity decoder instead of looping forever. A page with
|
|
consumed by the entity decoder instead of looping forever. A page with
|