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: ignore request error if request is done #384

Merged
merged 5 commits into from
Jul 5, 2022
Merged

Conversation

killagu
Copy link
Member

@killagu killagu commented Jun 28, 2022

No description provided.

lib/urllib.js Outdated Show resolved Hide resolved
lib/urllib.js Show resolved Hide resolved
@fengmk2 fengmk2 added the bug label Jun 28, 2022
@codecov
Copy link

codecov bot commented Jul 5, 2022

Codecov Report

Merging #384 (c1fb625) into master (20451f2) will increase coverage by 0.19%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #384      +/-   ##
==========================================
+ Coverage   93.04%   93.24%   +0.19%     
==========================================
  Files           6        6              
  Lines         820      829       +9     
  Branches      223      225       +2     
==========================================
+ Hits          763      773      +10     
+ Misses         57       56       -1     
Impacted Files Coverage Δ
lib/urllib.js 96.27% <100.00%> (+0.20%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

// err = new Error('Remote socket was terminated before `response.end()` was called');
// err.name = 'RemoteSocketClosedError';
debug('Request#%d %s: Remote socket was terminated before `response.end()` was called', reqId, url);
var err = responseError || new Error('Remote socket was terminated before `response.end()` was called');
Copy link
Member

Choose a reason for hiding this comment

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

responseError 的变量定义应该放在 decodeContent 前面。

@fengmk2 fengmk2 merged commit f343daa into master Jul 5, 2022
@fengmk2 fengmk2 deleted the fix/ignore_error branch July 5, 2022 08:16
@fengmk2
Copy link
Member

fengmk2 commented Jul 5, 2022

2.38.1

@fengmk2
Copy link
Member

fengmk2 commented Aug 5, 2022

nodejs/node#43112

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.

3 participants