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

Fixes to net_connections() on FreeBSD. #1079

Merged
merged 2 commits into from
May 18, 2017
Merged

Fixes to net_connections() on FreeBSD. #1079

merged 2 commits into from
May 18, 2017

Conversation

glebius
Copy link
Contributor

@glebius glebius commented May 18, 2017

The problem was that the fd values were all initialized to -1, making pairs of locally connected sockets equal, thus truncated when added to Python set.

glebius added 2 commits May 17, 2017 17:52
This not only removes ugly workaround from test_connections.py, but also
fixes several failures in this test.  Without file descriptor value, two
local sockets connected to each other, would be equal objects.  Since
in the _psbsd.py:net_connections(), the returned value is a Python set,
it will exclude any duplicates, resulting in shrinked list of sockets.
@giampaolo giampaolo merged commit 5250b63 into giampaolo:master May 18, 2017
@giampaolo
Copy link
Owner

Amazing! I wouldn't have made it. This was a high-priority one and also a new feature was added (the fd). Thanks a lot Gleb.

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

Successfully merging this pull request may close these issues.

2 participants