Comments (9)
是不是可以使用 #2547 notify_on_success特性,在写入成功后,通过id_wait结束rpc?
from incubator-brpc.
是不是可以使用 #2547 notify_on_success特性,在写入成功后,通过id_wait结束rpc?
结束rpc并不是关闭socket吧?
from incubator-brpc.
我理解这种没有响应的请求,在socket写完请求包就可以认为成功了。
设置notify_on_success后,socket写完请求包,就会调用id_wait的回调函数,这时候error_code是0,表示写入成功,就可以认为rpc调用成功了吧。
from incubator-brpc.
我理解这种没有响应的请求,在socket写完请求包就可以认为成功了。
设置notify_on_success后,socket写完请求包,就会调用id_wait的回调函数,这时候error_code是0,表示写入成功,就可以认为rpc调用成功了吧。
对, 写入成功就表示rpc成功了, 调用id_wait回调会关闭对应的socket和fd么
from incubator-brpc.
设置notify_on_success后,不会
from incubator-brpc.
related PR: #2171
from incubator-brpc.
设置notify_on_success后,不会
如果直接返回, 那么回包后controller, request, response析构了怎么办, 还是说只支持不回包的请求?
from incubator-brpc.
目前只支持不回包的请求。
什么场景需要支持回包的?
from incubator-brpc.
目前只支持不回包的请求。
什么场景需要支持回包的?
有时候想完全忽略回包, 但是还是需要自己new cntl, new repsonse, 还要在 done Closure中 删除cntl, response
from incubator-brpc.
Related Issues (20)
- server 端通过channel 访问其他服务,内存持续缓慢上涨,疑似内存泄漏
- keytable管理问题咨询 HOT 2
- 当启动参数过长,访问/vars会导致dashboard崩溃
- brpc初始化失败,cpu持续100% HOT 2
- Paddle 启动报Fail to fscanf的warning,非常多 HOT 1
- bthread_worker_usage这个统计值为何有时候会超时bthread HOT 2
- Why make two OS_POSIX judgments in loging.cc?
- BUG? Response执行完先于IssueRPC中的bthread_id_unlock执行完毕的话, unlock会失败吧? HOT 3
- 308 Unknown status code HOT 1
- 遇到一个编译问题 HOT 2
- brpcDummyServer成功启动但无法工作问题
- 容器部署绑定cpu后coredump HOT 1
- leveldb已经老旧化,是否考虑切到rocksdb HOT 4
- bvar::PassiveStatus<std::string> 无法暴露指标 HOT 1
- Is there already any plan about switch bazel workspace to bzlmod? HOT 1
- 如何在requestMeta当中设置 traceId, parentSpanId, spanId? HOT 4
- brpc异步server使用方式 HOT 3
- 动态设置"TCMALLOC_SAMPLE_PARAMETER"以支持动态开关pprof/heap采样 HOT 2
- mbvar 如何通过 LatencyRecorder 获取平均耗时 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-brpc.