Comments (1)
1、idle_list本来是所有的client connection处于keep_alive状态时用的,idle_list里的所有连接下一个动作一定是send。后来发现server处于准备回复状态的连接也很类似。所以对于server的target来讲,idle_list其实最多只有一个连接,并且处于收到请求但还没有回复的阶段。alive_list是service上的成员,保存该serivce上所有keep alive的连接。这个list唯一的作用是drain,就是当连接数达到上限时用于关掉比较久没有使用的连接,以及程序退出的时候关闭所有keep alive连接。
2、ref就是引用计数啊,service需要引用计数到0才解绑完成,connection要ref=0才能释放。因为异步环境下,连接随时可能被关闭,所有需要引用计数,相当于手动shared_ptr。
3、好像SENDING状态没有什么用,就没加。receiving就是正在收数据……
from workflow.
Related Issues (20)
- 关于Executor调度算法的讨论 HOT 7
- 编译失败, undefined reference to `EVP_PKEY_CTX_set_rsa_padding' collect2: error: ld returned 1 exit status HOT 21
- 预期是 task1 -> gotasks(counter) -> counter -> task3 怎么编程了 counter(gotasks) 最前执行 HOT 2
- 实现一次redis写入与读出:redis_cli 编译的时候报错。 HOT 6
- 利用workflow 写了一个redis客户端程序,当传入的命令是brpop这种阻塞式命令后,redis server一段时间没数据返回就会报错 HOT 5
- 有个指针和引用问题,请教一下。 HOT 4
- C++语法问题请教一下。 HOT 2
- queue get HOT 3
- __poller_handle_listen, __poller_handle_read, __poller_handle_write等函数内部为什么都会有__poller_remove_node, 比如在__poller_handle_listen中的最后调用__poller_remove_node, 不就会把之前add进来的server fd删除了吗?
- 求一个基于 parallework 的 WFMysqlConnection demo HOT 1
- 关于redis-proxy 超时问题 HOT 8
- 关于会收到重复Http请求的问题 HOT 3
- workflow server能否在process中向另一个客户端创建http任务发送数据 还有对 workflow wait_group使用的问题 HOT 8
- 一个SeriesWork 使用上面的疑问 HOT 4
- 域名问题 HOT 5
- WFConditional可以加一个访问task的接口嘛 HOT 7
- http请求的body数据多了些内容? HOT 2
- Ubuntu23.04会有undefined reference to `SSL_ctrl'错误 HOT 4
- http server 如何将一个大文件分块传输给http client?
- why create_repeater_task doesnt work,what I miss here? HOT 4
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 workflow.