Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

refactor(security): add join point to filter the sending message #629

Merged
merged 15 commits into from
Sep 22, 2020

Conversation

levy5307
Copy link
Contributor

Add join point to filter the sending message. If a message is filtered by negotiation_service::on_rpc_send_msg, we will put it into a pending message queue, which name is _pending_messages in rpc_session, and resend it when the negotiation is succeed.

@levy5307 levy5307 marked this pull request as draft September 17, 2020 10:44
@levy5307 levy5307 marked this pull request as ready for review September 18, 2020 08:57
@acelyc111
Copy link
Member

I found these PRs will add many if-statements, it's better to add some branch predictions, i.e. dsn_likely, dsn_unlikely

@hycdong hycdong merged commit 78c34ff into XiaoMi:master Sep 22, 2020
@levy5307 levy5307 deleted the on-send-message branch September 22, 2020 03:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants