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: fix #5101 by checking if destroyed #5102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dermasmid
Copy link

Which problem is this PR solving?

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #5101

Short description of the changes

check if destroyed before calling destroy

Type of change

Please delete options that are not relevant.

  • [*] Bug fix (non-breaking change which fixes an issue)

@dermasmid dermasmid requested a review from a team as a code owner October 31, 2024 10:32
Copy link

linux-foundation-easycla bot commented Oct 31, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.16%. Comparing base (eb3ca4f) to head (f38e639).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...ter-base/src/platform/node/http-transport-utils.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5102      +/-   ##
==========================================
- Coverage   93.18%   93.16%   -0.03%     
==========================================
  Files         315      315              
  Lines        8086     8088       +2     
  Branches     1617     1618       +1     
==========================================
  Hits         7535     7535              
- Misses        551      553       +2     
Files with missing lines Coverage Δ
...ter-base/src/platform/node/http-transport-utils.ts 96.00% <50.00%> (-1.92%) ⬇️

... and 1 file with indirect coverage changes

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Thanks for working on a fix for this - is there any way to hit this code-path in a test? 🤔
Without a test it's unfortunately difficult to grasp if this fix is effective.

Maybe I'm wrong, but shouldn't the error handler below ensure that no error is unhandled for the req? Could it be that the error is actually somewhere in compressAndSend() (seeing that the error is EPIPE in the #5101) 🤔

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.

Possible Unhandled 'error' event
2 participants