-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to net_connections() on FreeBSD. (#1079)
* File descriptor 0 is a valid value, for example for a daemon. * On FreeBSD fill in file descriptor values. 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.
- Loading branch information
Showing
3 changed files
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters