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

rewrite socket error handling, fixes #522 #525

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

ThomasWaldmann
Copy link
Member

socket.error is deprecated and is the same as OSError since python 3.3. Of course OSError can mean a lot of stuff, so not sure how that goes...

socket.herror is for gethostbyaddr and has some documented h_error values in netdb.h (but, AFAIK, these symbols are not available via python).

added a handler for h_error 0 (#522), which crashed since a while. removed some unclear error values, let's see what happens.

socket.error is deprecated and is the same as OSError since python 3.3.
Of course OSError can mean a lot of stuff, so not sure how that goes...

socket.herror is for gethostbyaddr and has some documented h_error values in netdb.h
(but, AFAIK, these symbols are not available via python).

added a handler for h_error 0 (nsupdate-info#522), which crashed since a while.
removed some unclear error values, let's see what happens.
@ThomasWaldmann ThomasWaldmann merged commit b7644ad into nsupdate-info:master Apr 18, 2023
@ThomasWaldmann ThomasWaldmann deleted the socket-herror branch April 18, 2023 21:22
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.

None yet

1 participant