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 listen response aborted on node > 0.10 #252

Merged
merged 4 commits into from
Mar 19, 2017

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Mar 17, 2017

see detail on 316da40

@fengmk2 fengmk2 requested a review from dead-horse March 17, 2017 00:02
@mention-bot
Copy link

@fengmk2, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dead-horse, @xingrz and @ibigbug to be potential reviewers.

lib/urllib.js Outdated
if (isOldVersionNode) {
waitEvents.push([res, 'aborted']);
}
first(waitEvents, function(_, stream, event) {
Copy link
Member Author

Choose a reason for hiding this comment

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

只在 0.10 依赖 aborted 事件,其他版本只依赖 close 事件

@fengmk2
Copy link
Member Author

fengmk2 commented Mar 17, 2017

@dead-horse
Copy link
Member

CI 挂了

@codecov
Copy link

codecov bot commented Mar 17, 2017

Codecov Report

Merging #252 into master will decrease coverage by 0.54%.
The diff coverage is 75%.

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   97.38%   96.84%   -0.55%     
==========================================
  Files           4        4              
  Lines         535      538       +3     
  Branches      132      133       +1     
==========================================
  Hits          521      521              
- Misses         14       17       +3
Impacted Files Coverage Δ
lib/urllib.js 97.05% <75%> (-0.67%)

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 bf53941...1095621. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 17, 2017

Codecov Report

Merging #252 into master will decrease coverage by 0.72%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   97.38%   96.66%   -0.73%     
==========================================
  Files           4        4              
  Lines         535      539       +4     
  Branches      132      134       +2     
==========================================
  Hits          521      521              
- Misses         14       18       +4
Impacted Files Coverage Δ
lib/urllib.js 96.83% <42.85%> (-0.89%) ⬇️

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 bf53941...d5b9734. Read the comment docs.

@dead-horse
Copy link
Member

额,ci 还是没过

@fengmk2
Copy link
Member Author

fengmk2 commented Mar 18, 2017

0.12 也得使用 res aborted

@dead-horse
Copy link
Member

LGTM

@dead-horse dead-horse merged commit 66ae462 into master Mar 19, 2017
@dead-horse dead-horse deleted the dont-listen-aborted-on-new-node branch March 19, 2017 14:10
@dead-horse
Copy link
Member

2.21.2

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