Skip to content

Certain kinds of HTTPS requests hang due to a race condition around reused sockets #60001

Description

@martinslota

Version

22.20.0

Platform

Darwin AQ5T24P47N6 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000 arm64

Subsystem

https

What steps will reproduce the bug?

See https://github.com/martinslota/node-socket-reuse-race for a detailed description and a script that shows the situation in which HTTPS client requests hang.

How often does it reproduce? Is there a required condition?

I can reproduce it every single time (on my machine).

What is the expected behavior? Why is that the expected behavior?

I expect the script in https://github.com/martinslota/node-socket-reuse-race to be able to run almost indefinitely.

What do you see instead?

The script fails.

Additional information

This bug report is a result of investigating aws/aws-sdk-js-v3#6426.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpsIssues and PRs related to the https subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions