-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brpc client 开启dummy server 程序core掉 #2896
Comments
可以给一个能复现的demo吗 |
感谢回复 具体场景是客户端http请求下载文件 我们服务接收请求后 调用存储端的sdk读文件并做处理
然后配置一个dummy_server.port 访问flags ,status ,vars这些没问题 但是访问contention这些就出问题,当然 进程不承接流量 不会有问题 |
看起来有点像执行到 ctx->buf.cutn() 这句的时候,ctx已经被析构了, |
ctx是一个智能指针 auto ctx = std::make_shared(object_size); 并且 如果不用brpc的异步回调处理数据 用同步的方式 也是上述的core的位置 |
有可以运行的例子吗 |
您的意思是说 要一个源码示例嘛 |
对的 |
代码没有上传到公共仓库 但是与brpc核心的流程就是上面的例子了 还有就是 ctx是一个 sdk的实例 AsyncCallWithAttachment方法内部
|
Describe the bug (描述bug)
程序使用brpc client 访问 server端,当访问contention时
To Reproduce (复现方法)
只要有下载请求 访问contention必现
Versions (各种版本)
OS: centos 7.9
gcc:11
Compiler:
brpc:v1.0.0
The text was updated successfully, but these errors were encountered: