libp2p / libp2p/go-libp2p

eventbus: kill associated subscriptions when the subscriber closes the channel

Open
#1,704 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

Use `recover()` to recover from the panic when sending on a closed channel.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the eventbus code that sends notifications to subscriber channels and reproduce the panic caused by a subscriber closing its channel. Check the associated subscription lifecycle, then verify that closing a subscriber channel no longer panics and its subscriptions are removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.