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

routing/http: fix goroutine/memory leak [skip changelog] #618

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

MichaelMure
Copy link
Contributor

I've noticed some memory and goroutine buildup, linked to that function.

It seems like when the context get cancelled, the consumer could be gone, but that function would still attempt to write in the channel and block forever.

I've noticed some memory and goroutine buildup, linked to that function.

It seems like when the context get cancelled, the consumer could be gone, but that function would still attempt to write in the channel and block forever.
@MichaelMure MichaelMure requested a review from a team as a code owner June 12, 2024 13:42
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 59.67%. Comparing base (625ba76) to head (b8219a9).

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #618      +/-   ##
==========================================
- Coverage   59.80%   59.67%   -0.13%     
==========================================
  Files         239      239              
  Lines       29961    29961              
==========================================
- Hits        17917    17880      -37     
- Misses      10427    10458      +31     
- Partials     1617     1623       +6     
Files Coverage Δ
routing/http/contentrouter/contentrouter.go 46.82% <60.00%> (-2.32%) ⬇️

... and 16 files with indirect coverage changes

Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 🙏

@aschmahmann aschmahmann merged commit 435d838 into ipfs:main Jun 17, 2024
13 checks passed
@lidel lidel mentioned this pull request Jun 18, 2024
32 tasks
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