brpc
brpc copied to clipboard
brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means...
你好,能不能列出来一下TODO list,像其他社区一样搞一些feature,这样也能增加社区的活跃度,也能让新手可以有个切入的点
我用Postman对服务端进行http请求时在Body中带了一个文件,通过butil::Controller::request_attchment()获取到Body中的文件数据并使用butil::IOBuf变量储存,后来文件读写完成后respond了消息回去,发现request_attchment()中内存没有被释放掉,有什么方法可以释放这些block占用的内存。 
fix compile errors close #1881
**Describe the bug (描述bug)** 编译失败 gcc **To Reproduce (复现方法)** cmake 编译 **Expected behavior (期望行为)** 编译成功 **Versions (各种版本)** OS: centos 6 Compiler: gcc GNU 11.1.0 brpc: 1.2.0 protobuf: 3.14.0 **Additional context/screenshots...
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**   stream是rpc框架使用中的常用功能,虽然brpc有streaming rpc,但是兼容grpc stream能给框架的这部分功能带来更大的泛用性。   经过百度内部Service Mesh实践,出于定制化需求方向的考虑,我们希望在proxyless模式下,brpc能够直连istio,逐渐减弱对envoy的依赖。istio下发配置使用的是双向grpc stream,所以我们需要完成brpc兼容grpc stream的适配。  主要需求如下:   1、兼容grpc steam的同步/异步或订阅推送式的客户端;   2、一如既往简单便捷的客户端API,不希望定制protobuf插件。  后续事项:*服务端API设计、直达底层h2协议的性能调优 **Describe the solution you'd like (描述你期望的解决方法)** 以grpc stream Demo的消息格式...
**Describe the bug (描述bug)** 编译时报错:fatal error: 'google/protobuf/generated_message_table_driven.h' file not found **To Reproduce (复现方法)** recompile **Expected behavior (期望行为)** 编译成功 **Versions (各种版本)** OS:macos 12.4 m1 Compiler:clang 13 brpc:master commit 6495704589d2ed21df22d0b296dddff738024551 protobuf:3.21.5(使用brew安装的3.20.*,也有相关问题),随后手动安装了最新版 **Additional...
**Describe the bug (描述bug)** 基于example中的例子验证可选熔断(根据失败率) 原始代码:https://github.com/52coder/incubator-brpc/tree/master/example/asynchronous_echo_c%2B%2B client.cpp修改点: https://github.com/52coder/incubator-brpc/blob/master/example/asynchronous_echo_c%2B%2B/client.cpp#L65 添加: options.enable_circuit_breaker = true; L30行修改为rr : DEFINE_string(load_balancer, "rr", "The algorithm for load balancing"); server.cpp在改动前,先编译出来echo_server,然后在https://github.com/52coder/incubator-brpc/blob/master/example/asynchronous_echo_c%2B%2B/server.cpp#L63前面增加如下代码: cntl->SetFailed(brpc::EREQUEST, "Fail to parse request");然后编译出二进制echo_server_fail,这里的想法是生成一个100%失败的server触发熔断。 **To Reproduce (复现方法)**...
Thread 29 (Thread 0x7ee14ea5d700 (LWP 57194)): #0 0x000055cee64a4250 in sys_futex () #1 0x000055cee64a4401 in base::internal::SpinLockDelay(int volatile*, int, int) () #2 0x000055cee64a40c0 in SpinLock::SlowLock() () #3 0x000055cee648cce4 in SpinLock::Lock() () #4...