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

Mismatch in the count of 'unix' network connections between psutil.net_connections() and system tools. #2475

Open
universal-extensions opened this issue Dec 6, 2024 · 0 comments

Comments

@universal-extensions
Copy link

Summary

  • OS: Rocky Linux 8.7
  • Architecture: x86_64
  • Psutil version: psutil 6.0.0
  • Python version: python 3.11.6

Description

While using psutil.net_connections('unix') or counting 'unix' connections in psutil.net_connections('all'), I noticed that the number of connections returned is lower than expected. Specifically, the count does not match the output of the netstat command or the data available in /proc/net/unix.

Steps to Reproduce

Run the psutil.net_connections('unix') function in a Python script.
Compare the resulting count of connections to the output of netstat or the content of /proc/net/unix.

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

No branches or pull requests

1 participant