Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 330136f

Browse files
committedMay 15, 2023
Get listening port from workerd, closes #532
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. 🎉

File tree

16 files changed

+197
-365
lines changed

16 files changed

+197
-365
lines changed
 

‎package-lock.json

+49-132
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"types:bundle": "npm run types:build && node scripts/types.mjs"
3232
},
3333
"devDependencies": {
34-
"@ava/get-port": "^2.0.0",
3534
"@ava/typescript": "^4.0.0",
3635
"@microsoft/api-extractor": "^7.33.6",
3736
"@types/node": "^18.11.9",
@@ -48,7 +47,6 @@
4847
"eslint-plugin-es": "^4.1.0",
4948
"eslint-plugin-import": "^2.24.2",
5049
"eslint-plugin-prettier": "^3.4.1",
51-
"esm": "^3.2.25",
5250
"expect-type": "^0.15.0",
5351
"patch-package": "^6.4.7",
5452
"prettier": "^2.3.2",

‎packages/tre/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@
3232
"better-sqlite3": "^8.1.0",
3333
"capnp-ts": "^0.7.0",
3434
"exit-hook": "^2.2.1",
35-
"get-port": "^5.1.1",
3635
"glob-to-regexp": "^0.4.1",
3736
"http-cache-semantics": "^4.1.0",
3837
"kleur": "^4.1.5",
3938
"source-map-support": "0.5.21",
4039
"stoppable": "^1.1.0",
4140
"undici": "^5.13.0",
42-
"workerd": "^1.20230419.0",
41+
"workerd": "^1.20230512.0",
4342
"ws": "^8.11.0",
4443
"youch": "^3.2.2",
4544
"zod": "^3.20.6"

0 commit comments

Comments
 (0)
This repository has been archived.