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

brpc Stream导致普通RPC无法解析 #2677

Closed
howarlii opened this issue Jul 3, 2024 · 0 comments
Closed

brpc Stream导致普通RPC无法解析 #2677

howarlii opened this issue Jul 3, 2024 · 0 comments
Labels
bug the code does not work as expected

Comments

@howarlii
Copy link
Contributor

howarlii commented Jul 3, 2024

Describe the bug (描述bug)
当同一个brpc::Server中同时存在Stream和普通 RPC,普通RPC将无法解析,报错为:

E20240703 08:42:11.077316 1409359 input_messenger.cpp:123] Fail to parse response from 127.0.0.1:12306 by streaming_rpc at client-side
W20240703 08:42:11.077428 1409359 input_messenger.cpp:249] Close Socket{id=2 fd=8 addr=127.0.0.1:12306:53862} (0x631000014d00): absolutely wrong message
E20240703 08:42:11.077787 1409308 stream_test.cc:138] Fail to send rpc [E22]Close Socket{id=2 fd=8 addr=127.0.0.1:12306:53862} (0x0x631000014d00): absolutely wrong message

之前也有issue讨论过这个问题,但最后不了了之 #392

To Reproduce (复现方法)

最小复现代码:https://github.com/howarle/brpc_benchmark/blob/main/src/stream_test.cc
复现率100%

Expected behavior (期望行为)

目前只能将普通RPC与stream分开两个server,但正常情况下同一个server也应当能够正常两种方案正常同时运行。

Versions (各种版本)
OS: Ubuntu 22.04
Compiler: Clang++ 15.0.7
brpc: 1.9.0
protobuf:

Additional context/screenshots (更多上下文/截图)

@howarlii howarlii changed the title Stream导致普通RPC无法解析 brpc Stream导致普通RPC无法解析 Jul 3, 2024
@Huixxi Huixxi added the bug the code does not work as expected label Jul 7, 2024
@Huixxi Huixxi closed this as completed Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the code does not work as expected
Projects
None yet
Development

No branches or pull requests

2 participants