Switch the engineering client to M10 sessions (M10.5c)
Foundation / checks (checks) (push) Successful in 32m47s
Foundation / checks (client) (push) Failing after 10m1s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (network) (push) Successful in 11m18s
Foundation / checks (postgres) (push) Successful in 40m20s
Foundation / checks (tsan) (push) Successful in 7m46s
Foundation / postgres-tools (push) Skipped
Foundation / image (push) Skipped
Foundation / server-image (push) Skipped
Foundation / checks (checks) (push) Successful in 32m47s
Foundation / checks (client) (push) Failing after 10m1s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (network) (push) Successful in 11m18s
Foundation / checks (postgres) (push) Successful in 40m20s
Foundation / checks (tsan) (push) Successful in 7m46s
Foundation / postgres-tools (push) Skipped
Foundation / image (push) Skipped
Foundation / server-image (push) Skipped
evo-client's remote mode now runs over RegionSessionClient (QUIC, session v2): snapshot-fed environment and organism views, the camera following the server's view until the user moves it and then driving the interest, intention records with a simulated state, and reconnects with the next grant of a bundle. The launcher reads 160-byte M10 grants and defaults to the dev route. - quic::resolve_ipv4 shared by the client and evo-session-probe - evo-session-probe grants: owner-only bundles of 1-64 grants - evo-server --m10-max-grant-lifetime (dev only, 60..3600 s) - presets client-network/client-package build QUIC; msquic links the CRT fully static; msquic.dll and msquic/OpenSSL licences in the Windows package - client-remote-session test against a loopback region - ADR-0093/0091/0086 amendments, M10_CLIENT_SESSIONS guide, validation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,7 @@ std::string_view launch_error_text(LaunchError error) noexcept {
|
||||
case LaunchError::authority_path:
|
||||
return "Choose the dev CA certificate file (dev-ca.pem).";
|
||||
case LaunchError::grants_path:
|
||||
return "Choose a grant bundle file issued by evo-dev-session grants.";
|
||||
return "Choose a grant bundle file issued by evo-session-probe grants.";
|
||||
case LaunchError::authority_unreadable:
|
||||
return "The dev CA file could not be read.";
|
||||
case LaunchError::authority_invalid:
|
||||
@@ -116,7 +116,7 @@ std::expected<ConnectMaterial, LaunchError> load_connect(const ConnectForm& form
|
||||
return std::unexpected(bundle.error());
|
||||
if (bundle->size() % grant_record_bytes != 0)
|
||||
return std::unexpected(LaunchError::grants_invalid);
|
||||
ConnectMaterial material{*endpoint, form.server_name, std::move(pem), {}};
|
||||
ConnectMaterial material{*endpoint, form.server_name, std::move(pem), form.authority_path, {}};
|
||||
for (std::size_t at = 0; at < bundle->size(); at += grant_record_bytes) {
|
||||
GrantRecord grant{};
|
||||
std::copy_n(bundle->begin() + static_cast<std::ptrdiff_t>(at), grant.size(), grant.begin());
|
||||
@@ -167,7 +167,7 @@ void Launcher::observe(ConnectSignal signal) noexcept {
|
||||
phase_ = LaunchPhase::connecting;
|
||||
return;
|
||||
case ConnectSignal::not_ready:
|
||||
return; // The session retries with the same grant.
|
||||
return; // The session retries after a pause.
|
||||
case ConnectSignal::exhausted:
|
||||
fail(LaunchError::grants_exhausted);
|
||||
return;
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
// M10.5c host name lookup for QUIC clients (ADR-0093). Kept apart from the msquic
|
||||
// endpoint so the platform socket headers never meet msquic's own Windows includes.
|
||||
#ifdef _WIN32
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
// After <winsock2.h>.
|
||||
#include <ws2tcpip.h>
|
||||
#else
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include "evo/network/quic_transport.hpp"
|
||||
|
||||
namespace evo::network::quic {
|
||||
std::optional<std::string> resolve_ipv4(const std::string& host) {
|
||||
#ifdef _WIN32
|
||||
static const bool started = [] {
|
||||
WSADATA data{};
|
||||
return WSAStartup(MAKEWORD(2, 2), &data) == 0; // Process lifetime; never cleaned up.
|
||||
}();
|
||||
if (!started)
|
||||
return std::nullopt;
|
||||
#endif
|
||||
if (host.empty())
|
||||
return std::nullopt;
|
||||
addrinfo hints{};
|
||||
hints.ai_family = AF_INET;
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
addrinfo* found = nullptr;
|
||||
if (getaddrinfo(host.c_str(), nullptr, &hints, &found) != 0 || found == nullptr)
|
||||
return std::nullopt;
|
||||
char text[INET_ADDRSTRLEN] = {};
|
||||
const auto* address = reinterpret_cast<const sockaddr_in*>(found->ai_addr);
|
||||
const bool ok = inet_ntop(AF_INET, &address->sin_addr, text, sizeof text) != nullptr;
|
||||
freeaddrinfo(found);
|
||||
if (!ok)
|
||||
return std::nullopt;
|
||||
return std::string{text};
|
||||
}
|
||||
} // namespace evo::network::quic
|
||||
Reference in New Issue
Block a user