Skip to content

Commit

Permalink
Get listening port from workerd, closes #532
Browse files Browse the repository at this point in the history
Wait for control messages using the new `--control-fd` flag for
signalling when `workerd` is ready to receive requests, and the port
it's listening on. This allows us to pass port `0` directly to
workerd, and have it allocate a free port, preventing races. It also
allows us to remove the repeated readiness probes. 🎉
  • Loading branch information
mrbbot committed May 15, 2023
1 parent c0c992b commit 0460c89
Show file tree
Hide file tree
Showing 16 changed files with 197 additions and 365 deletions.
181 changes: 49 additions & 132 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"types:bundle": "npm run types:build && node scripts/types.mjs"
},
"devDependencies": {
"@ava/get-port": "^2.0.0",
"@ava/typescript": "^4.0.0",
"@microsoft/api-extractor": "^7.33.6",
"@types/node": "^18.11.9",
Expand All @@ -48,7 +47,6 @@
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-prettier": "^3.4.1",
"esm": "^3.2.25",
"expect-type": "^0.15.0",
"patch-package": "^6.4.7",
"prettier": "^2.3.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/tre/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
"better-sqlite3": "^8.1.0",
"capnp-ts": "^0.7.0",
"exit-hook": "^2.2.1",
"get-port": "^5.1.1",
"glob-to-regexp": "^0.4.1",
"http-cache-semantics": "^4.1.0",
"kleur": "^4.1.5",
"source-map-support": "0.5.21",
"stoppable": "^1.1.0",
"undici": "^5.13.0",
"workerd": "^1.20230419.0",
"workerd": "^1.20230511.2",
"ws": "^8.11.0",
"youch": "^3.2.2",
"zod": "^3.20.6"
Expand Down
Loading

0 comments on commit 0460c89

Please sign in to comment.