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

feat(sock_diag): add state filter option to SocketDiag #916

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

Conversation

laushunyu
Copy link

I want to retrieve all listening sockets, but I've noticed that SocketDiagTCP consumes a lot of memory and works slowly due to the large number of ESTABLISHED sockets on my server. Therefore, I've added a state filter(backward compatibility) to the SocketDiag function to pre-filter the sockets in the OS.

@laushunyu
Copy link
Author

need review, plz @vishvananda

@aboch
Copy link
Collaborator

aboch commented Jul 3, 2024

@laushunyu please resolve the conflicts

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