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 error handling for http #242

Merged
merged 1 commit into from
Mar 7, 2018
Merged

Fix error handling for http #242

merged 1 commit into from
Mar 7, 2018

Conversation

BridgeAR
Copy link
Contributor

@BridgeAR BridgeAR commented Mar 5, 2018

The reject handler were always called no matter if there was an or not.

Now it will properly test for that and also wait for the write to be done before closing fd.

It will also report an error including a stack trace from now on and not only show a error message in case there is an error in the http(s) call.

I also fixed the issue that the write did not have a callback at all, so that error was always silent so far. This is going to throw from Node.js 10.x on. See nodejs/node#18668.

The reject handler were always called no matter if there was an
error or not.
@fkling
Copy link
Contributor

fkling commented Mar 7, 2018

I should reviewed that better... ;) Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants