You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ext/node): notify control socket when node:http server starts serving (#34949)
Upstream PR #34662 landed the `DENO_SERVE_ADDRESS` override for
`node:http`/`node:https`, and PR #34676 wired `Deno.serve()` to call
`op_http_notify_serving()` so that `DENO_AUTO_SERVE` setups can wait for
a "Serving" event over `DENO_UNSTABLE_CONTROL_SOCK`. Node servers were
left out: they observed the override address but never fired the notification, so
a control plane waiting on the socket would hang.
This hooks `notifyAddressOverrideServing()` into the `listen()` path of
both `http.Server` and `https.Server` (and into `startOverrideListener` for
non-TCP override transports) so `node:http` servers fire the same notification
that `Deno.serve()` does. The unconfigured spec gains a `node:http` variant
exercising the full `DENO_AUTO_SERVE` +
`DENO_SERVE_ADDRESS=duplicate,unix:...` + `DENO_UNSTABLE_CONTROL_SOCK`
flow.
Co-authored-by: Avocet <avocet@deno.com>
0 commit comments