Skip to content

"unix" should be added to conn_tmap on illumos/SunOS too #2549

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

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

Conversation

mtelka
Copy link
Contributor

@mtelka mtelka commented Apr 8, 2025

Summary

Description

Commit 5d4be42 conditionally removed the addition of "unix" to conn_tmap for SUNOS. This seems to be wrong and is causing four tests to fail (see #2547 for details). This change reverts the offending part of 5d4be42 to avoid test failures documented in #2547.

@@ -22,6 +22,7 @@ XXXX-XX-XX
- 2542_: if system clock is updated `Process.children()`_ and
`Process.parent()`_ may not be able to return the right information.
- 2545_: [illumos]: Fix handling of MIB2_UDP_ENTRY in `net_connections()`_.
- 2547_: [illumos]: Add "unix" to conn_tmap on illumos/SunOS too.
Copy link
Owner

@giampaolo giampaolo Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the change exactly? Was only the unit test that was broken or the functionality (net_connections()) per se? If the former, please explain what was the problem (exception? crash?).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change exactly is to add "unix" back to conn_tmap as it was before December 2024.

I found the issue by running psutil's tests. I do not use psutil for anything specific. I just package it for OpenIndiana (and so I run its tests to make sure it works), primarily because it is needed by some other Python projects packaged.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like UNIX sockets are not supported on SunOS, that's why I removed it:

Only INET sockets are returned (UNIX are not).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I easily confirm that (or prove it is wrong)?

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.

[illumos] TestConnectedSocket.test_unix fails
2 participants