diff --git a/station/mb/src/front/mesh.mbt b/station/mb/src/front/mesh.mbt index bee245ce123..9882b8a0331 100644 --- a/station/mb/src/front/mesh.mbt +++ b/station/mb/src/front/mesh.mbt @@ -87,11 +87,12 @@ pub async fn mesh(host : @host.Host, path : String) -> Unit { bind_lock: @effect.Semaphore::new(1), on_accept_end: () => @host.exit(1), } - // `streams`: how it hands Node the streams the other end opens and what it does (front.rs `STREAMS`): 6, each with + // `streams`: how it hands Node the streams the other end opens and what it does (front.rs `STREAMS`): 7, each with // its index, a route Node gave it (`route`, a segment `*` any one) to what answers it, the mesh's scopes and - // leaves (`meshConfigure`, `meshRemove`, `meshAttachLeaf`, `meshDetachLeaf`), `iroh.probeRelay`, and the shell's - // stream and noq path fixes (a front of 5 is replaced so it takes them up). - host.say(({ "listening": Json::string(path), "streams": 6 } : Json).stringify()) + // leaves (`meshConfigure`, `meshRemove`, `meshAttachLeaf`, `meshDetachLeaf`), `iroh.probeRelay`, the shell's + // stream and noq path fixes, and the noq-proto BBRv3 (#852/#802) and 4 MiB stream_receive_window (#8093) fixes + // (a front of 6 is replaced so it takes them up). + host.say(({ "listening": Json::string(path), "streams": 7 } : Json).stringify()) // Its stdin is the launcher's: ended (the launcher gone, or stopping the station), the endpoint goes with it. ignore( host.rt.fork_daemon("mesh parent", on_error=e => @host.note("mesh parent failed: \{e}"), () => { diff --git a/station/native/launcher/src/front.rs b/station/native/launcher/src/front.rs index 4dc0e9907d7..7a909a7bca5 100644 --- a/station/native/launcher/src/front.rs +++ b/station/native/launcher/src/front.rs @@ -30,10 +30,11 @@ const LISTENS_WITHIN: Duration = Duration::from_secs(10); /// 4: a route's segment `*` is any one; 5: meshConfigure, meshRemove, meshAttachLeaf and meshDetachLeaf (a front of 4 /// answered Node's mesh directory "no operation meshConfigure" on every try, 2026-11-18); 6: iroh.probeRelay (#7567), /// unix backlog/retry and conn.hand skip (#7568), and noq path-idle/RTT-stall fixes (#7869/#7899/#7919), which a front -/// kept across updates otherwise never takes up (one of 5 ran a 40-hour-old binary, 2026-11-21). +/// kept across updates otherwise never takes up (one of 5 ran a 40-hour-old binary, 2026-11-21); 7: noq-proto BBRv3 +/// idle app_limited (#852) / startup pacing (#802) fixes and 4 MiB stream_receive_window (#8093). /// A front kept from before a raise here is replaced once by the launcher that takes it up (`current`): the one thing /// that does not come with an update, as it is kept across them. -pub const STREAMS: u64 = 6; +pub const STREAMS: u64 = 7; pub struct Front { pub pid: i32, diff --git a/station/native/launcher/tests/fixtures/front.cjs b/station/native/launcher/tests/fixtures/front.cjs index bfd14650e95..447b6df5a7a 100644 --- a/station/native/launcher/tests/fixtures/front.cjs +++ b/station/native/launcher/tests/fixtures/front.cjs @@ -24,6 +24,6 @@ const server = net.createServer((c) => { }); c.on("error", () => {}); }); -server.listen(socket, () => process.stdout.write(JSON.stringify({ listening: socket, streams: 6 }) + "\n")); +server.listen(socket, () => process.stdout.write(JSON.stringify({ listening: socket, streams: 7 }) + "\n")); process.stdin.on("data", () => {}); process.stdin.on("end", () => process.exit(0)); diff --git a/station/native/launcher/tests/launcher.rs b/station/native/launcher/tests/launcher.rs index 20f1ba3dad0..b872badf3ec 100644 --- a/station/native/launcher/tests/launcher.rs +++ b/station/native/launcher/tests/launcher.rs @@ -648,7 +648,7 @@ fn with_parent_it_stops_once_the_parent_is_gone() { /// A stand-in for the front (front.rs) in the release: it says where it listens and how it hands streams (this /// release's way), appends its pid to /fronts and runs until its stdin (the launcher's) ends. fn release_front(station: &Station) { - release_front_saying(station, ",\"streams\":6"); + release_front_saying(station, ",\"streams\":7"); } /// One that says `more` after where it listens (nothing: a front from before `streams`). @@ -744,6 +744,12 @@ fn a_front_from_before_the_shell_and_path_fixes_is_replaced_by_the_launcher_that a_front_saying_is_replaced("frontfive", ",\"streams\":5"); } +#[test] +fn a_front_from_before_the_bbr3_and_window_fixes_is_replaced_by_the_launcher_that_takes_it_up() { + // `streams` 6: a front without the noq-proto BBRv3 fixes and 4 MiB stream_receive_window (#8093) + a_front_saying_is_replaced("frontsix", ",\"streams\":6"); +} + fn a_front_saying_is_replaced(name: &str, more: &str) { let mut station = Station::new(name); release_front_saying(&station, more); @@ -997,7 +1003,7 @@ fn a_front_that_does_not_end_with_its_stdin_is_killed_as_the_launcher_stops() { // a front whose thread reading stdin is held: its end of the pipe is never read let path = station.app.join("station/stillfail-reader"); let fronts = station.data.join("fronts"); - std::fs::write(&path, format!("#!/bin/sh\necho $$ >> '{}'\nprintf '{{\"listening\":\"%s\",\"streams\":6}}\\n' \"$4\"\nexec sleep 1000000\n", fronts.display())).unwrap(); + std::fs::write(&path, format!("#!/bin/sh\necho $$ >> '{}'\nprintf '{{\"listening\":\"%s\",\"streams\":7}}\\n' \"$4\"\nexec sleep 1000000\n", fronts.display())).unwrap(); std::fs::set_permissions(&path, std::os::unix::fs::PermissionsExt::from_mode(0o755)).unwrap(); station.start(""); station.up();