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(ext/node): propagate socket error to client request object #27678

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jan 15, 2025

This addresses the 2nd part of #27670

Currently if socket errors with DNS error, then there's no way to handle it and it becomes uncaught error. This PR propagate it to ClientRequest object and the error can be handled with 'error' event listener on it.

  • write test cases

@kt3k kt3k marked this pull request as ready for review January 15, 2025 15:46
Copy link
Member

@satyarohith satyarohith left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Satya Rohith <me@satyarohith.com>
Signed-off-by: Yoshiya Hinosawa <stibium121@gmail.com>
@kt3k kt3k merged commit 339bc44 into denoland:main Jan 17, 2025
17 checks passed
@kt3k kt3k deleted the fix-node-http-propagete-socket-error-http-request-object branch January 17, 2025 03:35
crowlKats pushed a commit that referenced this pull request Jan 21, 2025
Co-authored-by: Satya Rohith <me@satyarohith.com>
(cherry picked from commit 339bc44)
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.

2 participants