Skip to content

fix: close UDP associations once relay is done#238

Merged
sbruens merged 1 commit into
masterfrom
sbruens/udp-sockets2
Feb 11, 2025
Merged

fix: close UDP associations once relay is done#238
sbruens merged 1 commit into
masterfrom
sbruens/udp-sockets2

Conversation

@sbruens

@sbruens sbruens commented Feb 10, 2025

Copy link
Copy Markdown

No description provided.

@sbruens sbruens requested a review from a team as a code owner February 10, 2025 22:07
Comment thread service/udp.go

func (c *association) Close() error {
close(c.readCh)
return c.pc.Close()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Who will close the PacketConn?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@sbruens sbruens merged commit 35fc25e into master Feb 11, 2025
@sbruens sbruens deleted the sbruens/udp-sockets2 branch February 11, 2025 01:13
@sbruens sbruens linked an issue Feb 11, 2025 that may be closed by this pull request
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.

UDP server memory leaking (sockets don't closes on server size)

2 participants