|
@@ -598,7 +598,9 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
the boot DHCP is skipped while it returns 0. `net.c` — ARP + ICMP echo, IPv4/UDP
|
|
the boot DHCP is skipped while it returns 0. `net.c` — ARP + ICMP echo, IPv4/UDP
|
|
|
send + parse helpers,
|
|
send + parse helpers,
|
|
|
shared ARP resolution (`net_arp_resolve`) and routing (`net_next_hop`), frame
|
|
shared ARP resolution (`net_arp_resolve`) and routing (`net_next_hop`), frame
|
|
|
- decode, `net_checksum()`/`net_checksum_tcp()`. `dhcp.c` — minimal DHCP client
|
|
|
|
|
|
|
+ decode, `net_checksum()`/`net_checksum_tcp()`. ARP entries expire after five
|
|
|
|
|
+ minutes and their age slides on every hit, so a gateway or DNS entry is not
|
|
|
|
|
+ lost during a long page load. `dhcp.c` — minimal DHCP client
|
|
|
(DISCOVER →
|
|
(DISCOVER →
|
|
|
OFFER → REQUEST → ACK; runs at boot when a NIC is present, 4 s budget, keeps
|
|
OFFER → REQUEST → ACK; runs at boot when a NIC is present, 4 s budget, keeps
|
|
|
the static address when no server answers; `dhcp` re-runs it; learns the DNS
|
|
the static address when no server answers; `dhcp` re-runs it; learns the DNS
|
|
@@ -1017,12 +1019,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 across
|
|
|
|
|
- navigations so a second page on the same origin reuses the TCP/TLS
|
|
|
|
|
- connection instead of paying a spawn and handshake; they exit after ten
|
|
|
|
|
- idle seconds and the browser stops them at once when its window loses
|
|
|
|
|
- focus, so raw commands can acquire the NIC. The helper sends
|
|
|
|
|
- `Accept-Encoding: gzip`; the browser inflates with a
|
|
|
|
|
|
|
+ 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
|
|
|
|
|
+ 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
|
|
|
|
|
+ DNS error is torn down and tried once more after half a second. The helper
|
|
|
|
|
+ sends `Accept-Encoding: gzip`; the browser inflates with a
|
|
|
progress hook that pumps the UI. The status bar reports the page fetch
|
|
progress hook that pumps the UI. The status bar reports the page fetch
|
|
|
(headers and first-byte milliseconds). Page, CSS and
|
|
(headers and first-byte milliseconds). Page, CSS and
|
|
|
image buffers come from the ring-3 libc heap; the DOM uses fixed static
|
|
image buffers come from the ring-3 libc heap; the DOM uses fixed static
|
|
@@ -1153,7 +1158,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
provide the route to the peer. Every stack syscall drains the NIC through
|
|
provide the route to the peer. Every stack syscall drains the NIC through
|
|
|
`net_pump()` (`netcore.c/h`), which dispatches each frame to the client
|
|
`net_pump()` (`netcore.c/h`), which dispatches each frame to the client
|
|
|
table, the WebDAV listener, a pending DNS query, the ARP cache and
|
|
table, the WebDAV listener, a pending DNS query, the ARP cache and
|
|
|
- `netkexec_capture_frame()`, and answers ARP/ICMP. The pump runs under the
|
|
|
|
|
|
|
+ `netkexec_capture_frame()`, and answers ARP/ICMP. Stack waits use
|
|
|
|
|
+ `net_pump_burst()`, repeated pump passes, because drivers return -1 both for
|
|
|
|
|
+ an empty ring and after an overflow reset, and one pass would otherwise
|
|
|
|
|
+ leave DNS/ARP/TCP waiting on a full ring. The pump runs under the
|
|
|
BKL, so the shared receive scratch and protocol state stay serialized; waits
|
|
BKL, so the shared receive scratch and protocol state stay serialized; waits
|
|
|
yield with `process_sleep_ms()` and re-enable interrupts around driver TX
|
|
yield with `process_sleep_ms()` and re-enable interrupts around driver TX
|
|
|
timeouts (the syscall stub enters with them off). A raw acquire fails while
|
|
timeouts (the syscall stub enters with them off). A raw acquire fails while
|
|
@@ -1855,10 +1863,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 across navigations and are stopped when the browser
|
|
|
|
|
- loses focus (or after ten idle seconds) so their sockets do not block raw
|
|
|
|
|
- commands. The helper requests gzip; a page
|
|
|
|
|
|
|
+ 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
|
|
|
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
|