Repository navigation
WebSocket transport, XHTTP server: Reduce some goroutines by switching to task.Periodic - #7470
Merged
Merged
Conversation
Member
|
link |
Member
Author
|
ws那个是 #7463 |
Member
|
其它的就算了,VLESS Enc 一个入站就一个 goroutine 就别动了吧,又不是耗多少资源,主要是我准备清理 *ray 遗留架构了 |
Fangliding
force-pushed
the
ws-keepalive
branch
from
November 24, 2026 19:36
dc26155 to
8d6509b
Compare
Member
Author
|
哦我看混了一堆xx key什么的我还以为是对客户端会话初始化的 一个确实没啥问题 |
Member
|
|
Member
|
@Fangliding Reverse 那处你看看新的代码里还有没有、要不要改 |
Fangliding
force-pushed
the
ws-keepalive
branch
from
November 25, 2026 12:44
8d6509b to
4b2fabb
Compare
Member
Author
|
它没用task了 改成go了 这里和vless一样出入站级的goroutine就一个不会膨胀用不用这个不打紧 |
Member
|
看 #7463 (comment) 说的,WS 是仅客户端吗 |
Member
Author
|
两边都有 独立发送 我做这个的一个原因是怕服务端被巨量请求打烂了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
把一些计时任务替换成不开goroutine的
task.Periodic任务 比如之前被怼过的VLESS enc清理还有有人请求ws keepalive的发送 并且正确添加了一些及时退出机制