[MG_Remote, MG_Test, docs] (P7): forfeit the reverse channel on a non-draining peer (PH-6)

This commit is contained in:
2026-09-23 13:44:13 -04:00
parent 0535c4f07d
commit 3d0f531170
9 changed files with 368 additions and 29 deletions
+11
View File
@@ -513,6 +513,17 @@ namespace MobileGL::MG_Config {
Uint32 WireDeferredMb = 64;
// MOBILEGL_IPC_SPIN_US: spin before parking on a doorbell, either direction.
Uint32 SpinUs = 50;
// MOBILEGL_IPC_EVENT_WAIT_MS (PH-6, ID-P7-2): the SERVER's patience, in ms, for ONE
// reverse-channel event that finds SEG_EVENT full under run-ahead. The apply thread
// publishes, rings the client and parks until the client drains enough room; a client
// that has not made room when this runs out - it stopped draining, it drains a slot at
// a time, or it went away - FORFEITS the reverse channel: that event and every later
// one is dropped and counted (eventDropped), and the session stops by the ordinary
// stop path rather than by Fatal{EventRingOverflow}. It bounds the whole reservation,
// not one park, so a trickling peer cannot stretch it. Was a 30000 ms constant spent
// twice. Read by the server only (ServerSpawn.cpp passes it to a spawned child); the
// lockstep arm (no kCapRunAheadApply, i.e. Magma) never waits and keeps P5C's Fatal.
Uint32 EventWaitMs = 2000;
// MOBILEGL_IPC_PERSISTENT_BLOCK_KB: block granularity of the persistent-map push.
// 0 IS A NEGATIVE CONTROL, NOT "unlimited": it disables the push, and
// PersistentCoherentMapScenario must go RED under it (exit gate E3(a)).