Replies: 2 comments 5 replies
-
|
对于server,每个client的entry中的target中的idle_list能够穿起来所有的idle的client的connection?我看实现每个client对应的target都是new出来的,没太懂这个idle_list的作用? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
这个entry可能会被挂到多种链表上,比如空闲链表、keepalive链表等。 它内部的 一般我们自己实现的链表可能是: 那我们每次要挂到链表上的时候,分配好了entry之后,还得分配一个list_node,才能挂起来。 但是kernel的实现利用entry自带的list作为内部拉链,所以这个list,就可以让操作链表的时候少分配一次list_node。 |
Beta Was this translation helpful? Give feedback.
5 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.
-
这个链表作用是什么?
Beta Was this translation helpful? Give feedback.
All reactions