Add M9.8c launcher, legend, labelled inspector and click selection
Toolkit-independent launcher, selection, label and outcome-log models with bounded inputs and fixed error text; Dear ImGui overlay in the native adapter with toolkit-first event routing and capture; engineering panels for fixture vs dev region, legend, inspector, session outcomes, notices and dialog. Additive SessionClient::unreachable_attempts() bounds unreachable connects. Docs, CI targets and validation evidence updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -696,6 +696,25 @@ void event_backpressure() {
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void unreachable_server() {
|
||||
// Refused connects produce no events (one per retry would flood callers); the
|
||||
// counter lets a launcher bound "unreachable". No grant is spent without a server.
|
||||
Harness h;
|
||||
h.server.reset();
|
||||
auto c = h.client(grants(7, 2, 100));
|
||||
std::vector<ClientEvent> events;
|
||||
// Windows reports a refused loopback connect only after about two seconds.
|
||||
const auto end = Clock::now() + std::chrono::milliseconds{10000};
|
||||
while (Clock::now() < end && c->unreachable_attempts() < 2) {
|
||||
c->poll(Clock::now());
|
||||
h.collect(*c, events);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds{5});
|
||||
}
|
||||
CHECK(c->unreachable_attempts() >= 2);
|
||||
CHECK(events.empty());
|
||||
CHECK(c->grants_left() == 2 && c->phase() == SessionPhase::backoff);
|
||||
}
|
||||
|
||||
void session_tests() {
|
||||
event_backpressure();
|
||||
ledger_exclusive_owner();
|
||||
@@ -707,5 +726,6 @@ void session_tests() {
|
||||
carriers_never_alias();
|
||||
grants_stay_consumed_across_restarts();
|
||||
liveness();
|
||||
unreachable_server();
|
||||
}
|
||||
} // namespace evo::network_test
|
||||
|
||||
Reference in New Issue
Block a user