Probe: resolve host names and report the QUIC close cause
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (network) (push) Successful in 9m46s
Foundation / checks (client) (push) Successful in 13m6s
Foundation / checks (tsan) (push) Successful in 8m2s
Foundation / checks (checks) (push) Successful in 32m25s
Foundation / checks (postgres) (push) Successful in 38m45s
Foundation / postgres-tools (push) Successful in 16s
Foundation / image (push) Successful in 2m34s
Foundation / server-image (push) Successful in 4m2s

evo-session-probe resolves a host name to IPv4 and prints the address DNS answered,
and its closed line names why the QUIC connection ended (untrusted: the server
answered but failed the pinned check; idle: nothing answered), via the new
RegionSessionClient::transport_cause. Records the UDP route reachability check
(not yet the authenticated acceptance run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-05 18:31:19 -04:00
co-authored by Claude Opus 5.5
parent ba5518796c
commit 27d2645aaa
5 changed files with 106 additions and 4 deletions
+6
View File
@@ -16,6 +16,7 @@ struct RegionSessionClient::Impl {
network::quic::ConnectionId connection{};
std::optional<network::SessionWelcome> welcome;
std::optional<SessionCloseReason> reason;
std::optional<network::quic::CloseCause> transport_cause;
std::optional<network::SessionRefreshResult> refresh_result;
std::uint64_t next_sequence{1}, server_tick{};
std::optional<network::SimulatedThrough> simulated;
@@ -136,6 +137,7 @@ void RegionSessionClient::poll(Clock::time_point now) {
} else if (e.kind == EventKind::datagram) {
m.datagram(e.bytes);
} else if (e.kind == EventKind::closed) {
m.transport_cause = e.cause;
m.connection = 0; // Already gone; nothing to close or send.
m.end(SessionCloseReason::connection_lost, false);
}
@@ -212,6 +214,10 @@ const std::optional<network::SessionWelcome>& RegionSessionClient::welcome() con
return impl_->welcome;
}
std::optional<network::quic::CloseCause> RegionSessionClient::transport_cause() const noexcept {
return impl_->transport_cause;
}
std::optional<SessionCloseReason> RegionSessionClient::close_reason() const noexcept {
return impl_->reason;
}