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

close p2p stream when error occur or this stream will be not used #569

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wpx1990
Copy link

@wpx1990 wpx1990 commented Aug 2, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:

When edgemeshA create a p2p stream to edgemeshB, if error occur in edgemeshA or edgemeshB, or this stream will be not used, the stream resource should be released in edgemeshA and edgemeshB.

refer to go-libp2p code and examples. I add stream.Close or stream.Reset in edgemesh.

Which issue(s) this PR fixes:

Fixes #567

Special notes for your reviewer: none

Does this PR introduce a user-facing change?: no


@kubeedge-bot kubeedge-bot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 2, 2024
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign poorunga after the PR has been reviewed.
You can assign the PR to them by writing /assign @poorunga in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot
Copy link
Collaborator

Welcome @wpx1990! It looks like this is your first PR to kubeedge/edgemesh 🎉

@kubeedge-bot kubeedge-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edgemesh seems to have performance issues; after a period of time, UDP packets can no longer be sent out.
2 participants