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...
**Describe the bug (描述bug)** 在butil/endpoint.cpp文件 hostname2endpoint函数中,对域名进行提取时,如果域名长度是恰好是63个字符时, 函数会进入这个if判断 if (i == sizeof(buf) - 1) { return -1; } 导致函数提前退出返回错误 **To Reproduce (复现方法)** 使用baidu_std协议通过域名方式访问server节点,如果域名长度恰好是63个字符时,会导致channel无法init成功 **Expected behavior (期望行为)** 域名长度不超过63,channel可以init成功 **Versions (各种版本)** OS: centos7.6...
will close #1842 目前有两个小问题。一个是bazel无法构建,需要rework bazel的那个PR合入。#1657 另外一个是macos上test_bvar的UT失败,这个已经提了issue介绍 : #1897
we want to use bthread_rwlock_t in our program, but it seems that brpc did not implemented.
尝试在 centos 8 上编译brpc,但貌似 yum 源与给出的 centos 安装教程不兼容,花了很多时间去重新配置。
Currently the tag inside returned data from `flamegraph.pl` is dropped by jQuery, and `init` won't work (so does features like zoom in/out: https://github.com/apache/incubator-brpc/pull/864#issuecomment-1149521212) This PR fixed the issue mentioned above.
Brpc already have the feature to close fd when it's idle, but it lacks the same feature for clients. This new feature can make clients close fd when servers are...
**Describe the bug (描述bug)** /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of fd=187: Connection timed out /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of fd=187: Connection timed out /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of...
### What problem does this PR solve? Issue Number: Problem Summary: 在tcp连接成功,ssl握手失败的情况下,rpc_channel_connection_count会自增。随后fd被close,但是计数却没有减 ### What is changed and the side effects? Changed: 只有在Socket::ResetFileDescriptor被成功调用后再自增计数,以使close fd时减计数的逻辑生效 Side effects: - Performance effects(性能影响): - Breaking...
### What problem does this PR solve? Issue Number: Problem Summary: 目前直接使用client Socket,存在两个问题: 1. 不能先连接对端,只能在第一次写入的时候连接。 2. 虽然可以先通过tcp connect获取一个fd,再通过SocketOptions.fd创建一个Socket对象。但是这种方式不支持ssl。 ### What is changed and the side effects? Changed: 支持在Socket::Create中连接对端,同时支持ssl。 Side effects:...