Enable dev M10 session windows and QUIC route
Foundation / checks (checks) (push) Failing after 56s
Foundation / checks (ecs) (push) Successful in 1m45s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (deploy) (push) Canceled after 3m3s
Foundation / checks (client) (push) Canceled after 3m9s
Foundation / checks (network) (push) Canceled after 28s
Foundation / checks (checks) (push) Failing after 56s
Foundation / checks (ecs) (push) Successful in 1m45s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (deploy) (push) Canceled after 3m3s
Foundation / checks (client) (push) Canceled after 3m9s
Foundation / checks (network) (push) Canceled after 28s
This commit is contained in:
@@ -227,6 +227,8 @@ std::optional<Options> parse(int argc, char** argv) {
|
||||
else if (flag == "--m10-environment" &&
|
||||
(value == "dev" || value == "stage" || value == "world0"))
|
||||
o.m10.environment = value;
|
||||
else if (flag == "--session-window")
|
||||
o.m10.session_window = value;
|
||||
else if (flag == "--crash-at") {
|
||||
const auto colon = value.find(':');
|
||||
const auto ordinal =
|
||||
@@ -481,7 +483,11 @@ template <typename State> int serve(Options& o) {
|
||||
admission_name(admitted.error()));
|
||||
pending.reset();
|
||||
}
|
||||
if (o.synthetic && !drain_deadline) {
|
||||
const bool m10_accepting = m10->accepting(static_cast<std::uint64_t>(
|
||||
std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count()));
|
||||
if (o.synthetic && !drain_deadline && (!m10->enabled() || m10_accepting)) {
|
||||
const auto& now_status = host.status();
|
||||
const bool running = now_status.phase == server::HostPhase::running && now_status.ready;
|
||||
if (running && !synthetic_running)
|
||||
@@ -587,7 +593,7 @@ int main(int argc, char** argv) {
|
||||
"--session-cert F --session-key F --session-grant-key F "
|
||||
"--session-grant-ledger F --session-environment dev]] [--m10-listen "
|
||||
"ADDRESS:PORT --m10-cert F --m10-key F --m10-issuer F "
|
||||
"--m10-environment dev|stage|world0]\n",
|
||||
"--m10-environment dev|stage|world0 --session-window ACTIVATION:UTC_EXPIRY]\n",
|
||||
stderr);
|
||||
return 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user