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...
用stream传递大量数据的时候发现下面的问题 1)有stream连接在传输大量的数据 2)此时再建立新的stream连接发现耗时不稳定,通过打印发现时间消耗在服务器端发送response到客户端接收到这个阶段 主要怀疑应该是response包和stream的数据流使用了一个channel,导致response接收不稳定 我们已经做了大数据的拆分功能 所以感觉这块可能需要类似response的时候使用和stream数据不一样的channel才行,不知道好像有没有这个考虑,或者目前有什么好的办法? 谢谢:)
**Is your feature request related to a problem?** Hi, I noticed that while brpc supports CRC checks, it currently doesn't validate the attachment field. In some cases, users put important...
**Describe the bug** Failed to make in aarch64(AWS Graviton4 instance) > ...... Compiling src/brpc/nshead_meta.pb.o In file included from ./src/butil/atomicops.h:34:0, from src/bthread/butex.cpp:22: ./src/butil/macros.h:173:34: error: static assertion failed: butex_fits_in_one_cacheline #define BAIDU_CASSERT(expr, msg)...
在7月份的视频中看到介绍说brpc实现了用户态tcp、去掉了bthread,目前是否已经上线使用?这个feature是否会开源呢? 
### What problem does this PR solve? 使用了官方最新的 snappy 替换了 butil 下面的 third_party 中的版本 Issue Number: https://github.com/apache/brpc/issues/3014 Problem Summary: ### What is changed and the side effects? Changed: Side effects:...
**Describe the bug** 服务开启enable_rpcz后,上线跑一段时间就会内存暴涨然后core掉,经排查定位发现在destroy()中存在内存重复释放问题。 ``` void Span::destroy() { EndAsParent(); Span* p = _next_client; while (p) { if (p == this) { LOG(ERROR) _next_client; p->_info.clear(); butil::return_object(p); p = p_next; } _info.clear();...
### What problem does this PR solve? Issue Number: Fix #3051 Problem Summary: ### What is changed and the side effects? Changed: Side effects: - Performance effects: - Breaking backward...
## Problem When using ParallelChannel, HTTP headers set on the parent controller (e.g., Authorization headers) are lost during sub-calls because they are not propagated to the sub-controllers. ## Solution -...
**Describe the bug** bthread::RWLock在写者持有锁期间,读者try_lock_for锁超时失败,符合预期,但写者释放锁之后,并且没有读者的情况下,新的写者无法获取锁 初步排查原因如下 apache_brpc/src/bthread/rwlock.cpp 函数rwlock_rdlock_impl 首先会给reader_count加1,超时失败并未恢复计数 因为没有替代方案,严重影响项目进度,跪求大佬们尽快响应,感激不尽! **To Reproduce** **Expected behavior** **Versions** OS: Ubuntu 24.04.1 LTS Compiler: gcc 13.3 brpc:1.11.0 protobuf: **Additional context/screenshots** 为了能够使用std::unique_lock和std::shared_lock管理锁,封装了一个代理类,希望官方能够原生支持,或者推出自己的unique_lock和shared_lock,感谢 class SharedTimedMutex { public:...
**Describe the bug** gdb)bt 8x8880088008880088 ?? () 0x00007fffe37449df/lib/libpgc sdf svs.soin othreag mutex0x00007fffe3a2fa8t/home/ns5000/lib/libpgc sdf svs.sogthreao mutns5000/lib/libpgc sdf_svs.so3x000日71Px::lock()/home/ns5000/lib/libpgc sdf svs.so()from /home/ns5000/lib/libpgc sdf svs.so3x666日7fffe3a5a22googleutexLock::MutexLock(google::protobuf::internal::WrappedMutex*)n/home/ns5000/lib/libpgc sdf svs.sox00007f599fgooglevoid const*)()fromconst*)9x00007ff5Ooy:"0rOTO:royString(std::string const*)()from /home/ns5000/lib/libpgc sdf svs.so0x00007fffe3a4f854google::protobuf/home/ns5000/lib/libpgc sdf svs.sofrom/home/ns5000/lib/libpgc...