关于kernel下的communicator模块设计的一些疑问 #1631
Unanswered
LunarStore
asked this question in
Q&A
Replies: 1 comment
-
|
Client和Server共用一套线程池和连接调度器才是最高效的方式,这样才能尽可能做到各个线程负载的均衡。 Communicator里,client的session是主动调用的,server session是被动产生的。用户的service类实现一个new_session的虚函数,在接收到新的请求是,会产生一个server session。server session正常需要handle两次,第一次是接收了完整的request,进入TOREPLY状态,第二次是回复结束,一般是SUCCESS状态。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions