FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release the RTMP peer key after key agreement by wasphin · Pull Request #3501 · apache/brpc · GitHub

/ brpc Public

Release the RTMP peer key after key agreement - #3501

Merged
chenBright merged 1 commit into
apache:masterfrom
wasphin:fix-rtmp-peer-key-release
Aug 29, 2026
Merged

Release the RTMP peer key after key agreement#3501
chenBright merged 1 commit into
apache:masterfrom
wasphin:fix-rtmp-peer-key-release

Conversation

wasphin commented Aug 28, 2026

Copy link
Copy Markdown
Member

What problem does this PR solve?

Issue Number: resolve

Problem Summary:

DHWrapper::copy_shared_key only released the temporary peer public key
when DH_compute_key failed. Successful RTMP complex handshakes retained the
allocation.

What is changed and the side effects?

Changed:

Release the temporary peer public key immediately after DH_compute_key
returns, covering both success and failure paths.

Side effects:

  • Performance effects: Negligible; this only releases an allocation when its
    last use completes.

  • Breaking backward compatibility: No.


Check List:

Free the temporary peer public key after DH_compute_key returns so both
successful and failed key agreement paths release it.

chenBright 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

chenBright merged commit cb3143f into apache:master Aug 29, 2026
25 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL