Skip to content

node:https: 'tls config unavailable; refusing to listen' under async-dispose (test-https-server-async-dispose) #4974

Description

@proggeramlug

Summary

test-https-server-async-dispose fails with:

[node:https] tls config unavailable; refusing to listen

An https server created in a context exercised by await using / Symbol.asyncDispose can't resolve its TLS config at listen() time, so it refuses to listen. Either the key/cert options aren't threaded through the async-dispose-wrapped server construction, or the TLS config is torn down too early. Confirm the server gets its TLS config when created under async-dispose.

Acceptance

test-https-server-async-dispose listens and disposes cleanly.


Found re-measuring #2132's corpus on main. Distinct bug split out of the behavioral tail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed defect or regressionparityCompatibility gap with Node.js, ECMAScript, or the supported ecosystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions