Skip to content

goroutine leak fixed #5214

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

Merged
merged 1 commit into from
May 5, 2025
Merged

goroutine leak fixed #5214

merged 1 commit into from
May 5, 2025

Conversation

pfi79
Copy link
Contributor

@pfi79 pfi79 commented May 4, 2025

Because grpc clients are not closed, there is a leak of goroutines.
This change fixes this

Signed-off-by: Fedor Partanskiy <[email protected]>
@pfi79 pfi79 requested a review from a team as a code owner May 4, 2025 21:18
@@ -186,8 +189,7 @@ func (hr *BFTHeaderReceiver) Stop() error {

hr.logger.Infof("[%s][%s] Stopping", hr.chainID, hr.endpoint)
Copy link
Contributor

Choose a reason for hiding this comment

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

well at least we have a stop function :-)

@yacovm yacovm merged commit 34273fb into hyperledger:main May 5, 2025
15 checks passed
@pfi79 pfi79 deleted the goroutines-leak branch May 5, 2025 08:04
@pfi79
Copy link
Contributor Author

pfi79 commented May 5, 2025

@yacovm @C0rWin @denyeart
Recently fixed 2 serious bugs: goroutine leak and deadlock in SmartBFT.
Please consider releasing a new version v3.1.1

@tock-ibm
Copy link
Contributor

tock-ibm commented May 6, 2025

@pfi79 Thanks for picking that up! At least I left TODOs in the right places ;-)

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.

3 participants