Commit706bc2fdRecorded19 Oct 2026Repositorysigil-http3
Give the fresh public phone controller a 60-minute window
Changed
scripts/continuous-punch-window.mjs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)Diff
scripts/continuous-punch-window.mjsmodified
@@ -67,7 +67,8 @@ async function run() {
67
const binary = join(directory, 'echo-server'); copyFileSync(original, binary); chmodSync(binary, 0o700); 68
privateJson(join(directory, 'interop.json'), receipt); 69
const supervisor = identity(process.pid); check(supervisor?.uid === process.getuid(), 'Cannot admit controller');−70
const deadline = Date.now() + 1800000;+70
const lifetimeSeconds = 3600;+71
const deadline = Date.now() + lifetimeSeconds * 1000; 72
const state = { schema: 1, kind: 'continuous-ipv6-punch', phase: 'preparing', supervisor, 73
bindAddress, port: 43443, startedAt: new Date().toISOString(), expiresAt: new Date(deadline).toISOString(), 74
binarySha256: input.binarySha256, sourceRevision: process.env.HTTP3_SOURCE_REVISION, binarySourceRevision: input.sourceRevision };@@ -76,7 +77,7 @@ async function run() {
77
const cancellation = new AbortController(); 78
const stop = () => cancellation.abort(); 79
process.on('SIGTERM', stop); process.on('SIGINT', stop);−79
const timer = setTimeout(stop, 1800000);+80
const timer = setTimeout(stop, lifetimeSeconds * 1000); 81
const save = () => privateJson(statePath, state); 82
function rootWindow() { 83
if (rootJson(join(firewall, 'closed.json'))?.verifiedAbsent) return false;@@ -93,7 +94,7 @@ async function run() {
94
const config = { schema: 1, testId: 'phone-continuous-' + jobId, expectedHost: hostname(), scope: 'ipv6-direct', 95
bindAddress, port: 43443, binary, binarySha256: input.binarySha256, certificateDirectory, 96
authority: `[${bindAddress}]:43443`, origins: [new URL(page).origin], interopReceipt: join(directory, 'interop.json'),−96
runDirectory: join(directory, 'server'), lifetimeSeconds: 1800 };+97
runDirectory: join(directory, 'server'), lifetimeSeconds }; 98
const configPath = join(directory, 'config.json'); privateJson(configPath, config); 99
const plan = inspectPlan(configPath); check(plan.ready, plan.blockers.join('; ')); 100
process.env.HTTP3_PUNCH_DIRECTORY = native;