Skip to content

fix: don't check socket writing on header timeout#1515

Merged
ronag merged 1 commit intonodejs:mainfrom
fengmk2:fix-timeout-on-big-file-stream
Jun 25, 2022
Merged

fix: don't check socket writing on header timeout#1515
ronag merged 1 commit intonodejs:mainfrom
fengmk2:fix-timeout-on-big-file-stream

Conversation

@fengmk2
Copy link
Copy Markdown
Contributor

@fengmk2 fengmk2 commented Jun 25, 2022

No description provided.

Comment thread lib/client.js

/* istanbul ignore else */
if (timeoutType === TIMEOUT_HEADERS) {
if (!socket[kWriting]) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The server side does not consume and client socket is always writing state.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 25, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.66%. Comparing base (03b53d7) to head (76a2582).
⚠️ Report is 1938 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1515      +/-   ##
==========================================
+ Coverage   94.63%   94.66%   +0.02%     
==========================================
  Files          50       50              
  Lines        4589     4589              
==========================================
+ Hits         4343     4344       +1     
+ Misses        246      245       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fengmk2 fengmk2 changed the title fix: don't check socket writing header timeout fix: don't check socket writing on header timeout Jun 25, 2022
@fengmk2 fengmk2 force-pushed the fix-timeout-on-big-file-stream branch from 6c5abc1 to 76a2582 Compare June 25, 2022 18:28
fengmk2 added a commit to node-modules/urllib that referenced this pull request Jun 25, 2022
@mcollina mcollina requested a review from ronag June 25, 2022 18:51
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ronag ronag merged commit 6b7d676 into nodejs:main Jun 25, 2022
@fengmk2 fengmk2 deleted the fix-timeout-on-big-file-stream branch June 26, 2022 02:00
fengmk2 added a commit to node-modules/urllib that referenced this pull request Jun 26, 2022
fengmk2 added a commit to node-modules/urllib that referenced this pull request Jul 5, 2022
fengmk2 added a commit to node-modules/urllib that referenced this pull request Jul 16, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants