Skip to content

Commit 050de0b

Browse files
committed
fix(connect): fit main's comment cap and connector fixture
1 parent 2087eaa commit 050de0b

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎apps/server/src/cloud/managedTunnelStartup.ts‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,9 @@ const urlOrigin = (url: string) => {
225225
};
226226

227227
/**
228-
* The relay routes the tunnel to the origin this environment registered last.
229-
* Only the server that owns the T3 home runs the connector, so an ingress that
230-
* names any other origin is stale: a process with this environment's
231-
* credentials registered its own port, then went away, and every request now
232-
* fails with connection refused. Checks the connector's ingress every minute
233-
* and registers this server's origin again when it points elsewhere. While the
234-
* mismatch persists, each attempt doubles the wait, up to 30 minutes, so a
235-
* relay that cannot fix it is not asked every minute.
228+
* Only this server runs the connector, so an ingress naming another origin is a dead
229+
* registration. Checks every minute and re-registers this origin on a mismatch,
230+
* doubling the wait (up to 30 minutes) while the relay keeps routing elsewhere.
236231
*/
237232
export const watchManagedTunnelOrigin = Effect.fn("ManagedTunnelOrigin.watch")(function* <
238233
E,

‎apps/server/src/guest/GuestShareService.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const layerConnect = Layer.mock(CloudManagedEndpointRuntime)({
7676
inspectConnector: Effect.map(Ref.get(hostname), (value) => ({
7777
readyConnections: 1,
7878
hostname: value,
79+
origin: null,
7980
protocol: "http2",
8081
})),
8182
});

0 commit comments

Comments
 (0)