brpc icon indicating copy to clipboard operation
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...

Results 414 brpc issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** 切换出去的bthread,在core文件中是看不到的,但是有时候会对检查问题有帮助,需要有手段去查看 **Describe the solution you'd like (描述你期望的解决方法)** 能够查看core文件中切换出去的bthread信息 **Describe alternatives you've considered (描述你想到的折衷方案)** 修改core文件,展示bthread栈信息 **Additional context/screenshots (更多上下文/截图)** 我目前实现了一个linux x86_64 gcc平台下的小程序,并附有一个gdb脚本,可以打印切换出去的bthread寄存器信息,根据寄存器信息修改core文件,实现可以用gdb直接查看core文件,通过`info thread`看到所有bthread。...

feature

**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** gdb coredump中执行'bthread_frame id'报错 **Describe the solution you'd like (描述你期望的解决方法)** 简单修改gdb源码,实现在gdb coredump中gdb_bthread_stack.py的功能全部可用 **Describe alternatives you've considered (描述你想到的折衷方案)** **Additional context/screenshots (更多上下文/截图)** 默认gdb 修改后gdb

现在好像是第一次rpc调用时才触发创建链接,第一次调用会慢一点。 可以在channel init时就创建和服务端的链接吗?

请问文档是不是跟1.8不匹配,如何使用set_response_compress_type,参数set_response_compress_type(brpc::CompressTypeZlib);编译不过去,还有[max_body_size]怎么设置,brpc::ServerOptions options;没有此参数。有交流群吗

### What problem does this PR solve? Issue Number: Problem Summary: ### What is changed and the side effects? Changed: json2pb中遇到字段类型不匹配时的处理方式由跳过改为报错,以避免引发后续隐藏错误。 Side effects: - Performance effects(性能影响): 无 - Breaking backward...

我在阅读rdma部分代码时,在 `GlobalRdmaInitializeOrDieImpl` 函数中看到一行比较奇怪的代码。它在全局初始化的过程中调用了 `IbvCreateCompChannel` 来创建应该由 `RdmaEndpoint` 管理的资源,并且没有对创建的 `ibv_comp_channel` 进行销毁。 请问这行代码符合预期吗?如果符合预期,请问这一行的作用是什么呢? 代码位置 https://github.com/apache/brpc/blob/d7eca3991f0f38121a4e40831e548d8802fa6b1a/src/brpc/rdma/rdma_helper.cpp#L492

**Describe the bug (描述bug)** 尝试过在os中 export HTTP_PROXY="xx.xx.xx.xx:8080" export HTTPS_PROXY="xx.xx.xx.xx:8080" curl -x xx.xx.xx.xx:8080 目标ip:目标port curl可以正常通过代理服务器转发到目标ip地址 但启动的python程序(调用编译好的C++通讯模块,底层使用brpc),默认使用baidu_std协议时,请求直接打到目标ip,没有经过代理服务器,将brpc_channel_protocol换为h2:grpc同样无法走代理服务器 **To Reproduce (复现方法)** **Expected behavior (期望行为)** 请问如何设置brpc的代理服务器行为? **Versions (各种版本)** OS: Compiler: brpc: protobuf: **Additional context/screenshots...

feature

压测时,服务出现crash,跟踪日志发现是CheckHealth()导致的,想问下什么情况下CheckHealth()会出现崩溃的风险。crash日志如下: ERROR: 2024-04-16 23:14:37.221456 [1904:0]line=32||trace_back=bin/xxxx(logging::LogStream::FlushWithoutReset()+0xde) [0xdc862e]|| ERROR: 2024-04-16 23:14:37.221460 [1904:0]line=33||trace_back=bin/xxxx(logging::LogMessage::~LogMessage()+0x2b) [0xdc8a8b]|| ERROR: 2024-04-16 23:14:37.221463 [1904:0]line=34||trace_back=bin/xxxx(brpc::Socket::CheckHealth()+0x154) [0xd718b4]|| ERROR: 2024-04-16 23:14:37.221467 [1904:0]line=35||trace_back=bin/xxxx(brpc::HealthCheckTask::OnTriggeringTask(timespec*)+0x73) [0xe05913]|| ERROR: 2024-04-16 23:14:37.221470 [1904:0]line=36||trace_back=bin/xxxx() [0xe1c9bb]|| ERROR: 2024-04-16 23:14:37.221474 [1904:0]line=37||trace_back=bin/xxxx(bthread::TaskGroup::task_runner(long)+0xfa)...

如题,希望能支持GO语言 :)

enhancement

**Describe the bug (描述bug)** 在其他的文件中DECLARE_int32(v); 但是用的时候会提示找不到引用,在cmake里已经link了brpc和gflag **To Reproduce (复现方法)** **Expected behavior (期望行为)** **Versions (各种版本)** OS: Compiler: brpc: protobuf: **Additional context/screenshots (更多上下文/截图)** ![image](https://github.com/apache/brpc/assets/35927727/0c98f9bb-ac05-47b0-8142-73f8169d1dce) ![image](https://github.com/apache/brpc/assets/35927727/4b99b28f-9473-4787-b732-2aa403594e89) ![image](https://github.com/apache/brpc/assets/35927727/797f182f-09ad-49eb-baa2-b8381e7f762e)