Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加获取socket_pool中所有id接口 #2031

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuanfengyun
Copy link
Contributor

No description provided.

@cloudwu
Copy link
Owner

cloudwu commented Feb 11, 2025

我不认为这个接口有必要。如果真的有需要,可以在 socket 模块上自己额外套一层,监控所有 api 调用。

@yuanfengyun
Copy link
Contributor Author

yuanfengyun commented Feb 11, 2025 via email

@cloudwu
Copy link
Owner

cloudwu commented Feb 11, 2025

有时候会有漏关闭的情况,提供一个接口可以方便查看当前有哪些还没关的套接字

服务退出时会全部关闭:

https://github.com/cloudwu/skynet/blob/master/lualib/skynet/socket.lua#L12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants