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

Catch when nodejs request is aborted #141

Merged
merged 1 commit into from
Feb 9, 2024

Commits on Feb 9, 2024

  1. Catch when nodejs request is aborted

    When we receive a request, we start listening to the close event on the
    response.
    When fired, we check if the request was aborted using `incoming.destroyed`,
    if it was, we dispatch an abort event to the existing request abort
    signal.
    
    Without this, whe the client abortes the request, the signal on the
    request was not being called with the abort event.
    
    Signed-off-by: m4rc3l05 <[email protected]>
    M4RC3L05 committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    55e0250 View commit details
    Browse the repository at this point in the history