Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 25, 2022

Conversation

fengmk2
Copy link
Contributor

@fengmk2 fengmk2 commented Jun 25, 2022

No description provided.

@@ -889,10 +889,8 @@ function onParserTimeout (parser) {

/* istanbul ignore else */
if (timeoutType === TIMEOUT_HEADERS) {
if (!socket[kWriting]) {
Copy link
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

codecov-commenter commented Jun 25, 2022

Codecov Report

Merging #1515 (76a2582) into main (03b53d7) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            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     
Impacted Files Coverage Δ
lib/client.js 97.76% <100.00%> (+0.12%) ⬆️
lib/core/errors.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03b53d7...76a2582. Read the comment docs.

@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
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.

None yet

4 participants