nodejs / nodejs/undici

Client will connect even if all requests are aborted

Open
#386 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
7.7k
Forks
880
Avg merge
2d 16h
Merged PRs (30d)
68

Description

Client will not notice requests might be aborted until request.onConnect which will only happen after the socket has connected. Thus the client might unnecessarily create a connection if all pending requests have been aborted.

A bit of an edge case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the client request lifecycle around request.onConnect and the handling of pending requests that have been aborted. Confirm when connection creation is triggered, then verify that no unnecessary connection is created when all pending requests are aborted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.