52coder commented on issue #1870: URL: https://github.com/apache/incubator-brpc/issues/1870#issuecomment-1229211645
@TousakaRin 不知道我得测试方法是否有问题,和你的代码一样(缺少了dummy_server.port),server端编译出来两个版本,一个包含cntl->SetFailed(brpc::EREQUEST, "Failed to parse request");,一个不包含这行代码: ./echo_server_ok --port=8001 ./echo_server_fail --port=8002 client.cpp中DEFINE_string(server, "list://0.0.0.0:8001,0.0.0.0:8002", "IP Address of server"); ./echo_client 直接运行 辛苦帮review下,实在没看出哪里有问题导致没有触发熔断? client终端输出一直是(20min+): W0827 23:17:06.067692 13282 client.cpp:42] Fail to send EchoRequest, [E1003][127.0.1.1:8002][E1003]Failed to parse request I0827 23:17:07.068715 13280 client.cpp:45] Received response from 0.0.0.0:8001: hello world (attached=bar) latency=1281us W0827 23:17:08.069341 13282 client.cpp:42] Fail to send EchoRequest, [E1003][127.0.1.1:8002][E1003]Failed to parse request I0827 23:17:09.070102 13280 client.cpp:45] Received response from 0.0.0.0:8001: hello world (attached=bar) latency=1048us -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
