Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Claim ownership of socket once we've passed it to libldap#544

Merged
mistotebe merged 1 commit into
python-ldap:mainpython-ldap/python-ldap:mainfrom
mistotebe:socket-ownershipmistotebe/python-ldap:socket-ownershipCopy head branch name to clipboard
Nov 2, 2023
Merged

Claim ownership of socket once we've passed it to libldap#544
mistotebe merged 1 commit into
python-ldap:mainpython-ldap/python-ldap:mainfrom
mistotebe:socket-ownershipmistotebe/python-ldap:socket-ownershipCopy head branch name to clipboard

Conversation

@mistotebe
Copy link
Copy Markdown
Contributor

Per Python docs a socket object will close the underlying file descriptor on garbage collection and to use it elsewhere, one needs to call detach().

Fixes: #460
Closes: #543

Comment thread Tests/t_ldapobject.py Outdated
Copy link
Copy Markdown
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

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

Excellent work, thanks for digging into this rabbit hole.

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.

Tests/t_ldapobject.py fails on pypy3 CI run

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.