Skip to content

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

Merged
aschmahmann merged 1 commit into
ipfs:mainfrom
MichaelMure:memleak
Jun 17, 2024
Merged

routing/http: fix goroutine/memory leak [skip changelog]#618
aschmahmann merged 1 commit into
ipfs:mainfrom
MichaelMure:memleak

Conversation

@MichaelMure

Copy link
Copy Markdown
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
@codecov

codecov Bot commented Jun 12, 2024

Copy link
Copy Markdown

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

@aschmahmann aschmahmann left a comment

Copy link
Copy Markdown
Contributor

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
@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