Skip to content

Support segment large brpc stream messages automatically#2889

Merged
chenBright merged 1 commit into
apache:masterfrom
jenrryyou:brpc_auto_semgent_stream_message
Feb 17, 2025
Merged

Support segment large brpc stream messages automatically#2889
chenBright merged 1 commit into
apache:masterfrom
jenrryyou:brpc_auto_semgent_stream_message

Conversation

@jenrryyou

@jenrryyou jenrryyou commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

https://github.com/apache/incubator-brpc/blob/master/docs/cn/streaming_rpc.md

"目前的实现还没有自动切割过大的消息,同一个tcp连接上的多个Stream之间可能有Head-of-line blocking问题,请尽量避免过大的单个消息,实现自动切割后我们会告知并更新文档"

尝试解决这个 TODO。

之前#1947 这个MR存在一点问题(见 讨论和comment)一直没有合入。最近内部有很多业务有需求,我重新实现了下。

@jenrryyou jenrryyou force-pushed the brpc_auto_semgent_stream_message branch 3 times, most recently from 898b114 to 4f986a5 Compare February 8, 2025 03:31
Comment thread src/brpc/stream.cpp Outdated
Comment thread src/brpc/stream.cpp Outdated
@jenrryyou jenrryyou force-pushed the brpc_auto_semgent_stream_message branch 2 times, most recently from c88748e to 97f4ca5 Compare February 9, 2025 13:46
@wwbmmm

wwbmmm commented Feb 10, 2025

Copy link
Copy Markdown
Contributor

LGTM

@jenrryyou jenrryyou force-pushed the brpc_auto_semgent_stream_message branch from 97f4ca5 to 41fb784 Compare February 11, 2025 12:22

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

LGTM

@jenrryyou

Copy link
Copy Markdown
Contributor Author

辛苦大佬@wwbmmm @chenBright 有空点下merge

Comment thread src/brpc/stream.cpp
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.

3 participants