Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1596 from gevent/issue1012
Better exception handling for alternate resolvers
- Loading branch information
Showing
13 changed files
with
691 additions
and
319 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The c-ares and DNSPython resolvers now raise exceptions much more | ||
consistently with the standard resolver. Types and errnos are | ||
substantially more likely to match what the standard library produces. | ||
|
||
Depending on the system and configuration, results may not match | ||
exactly, at least with DNSPython. There are still some rare cases | ||
where the system resolver can raise ``herror`` but DNSPython will | ||
raise ``gaierror`` or vice versa. There doesn't seem to be a | ||
deterministic way to account for this. On PyPy, ``getnameinfo`` can | ||
produce results when CPython raises ``socket.error``, and gevent's | ||
DNSPython resolver also raises ``socket.error``. | ||
|
||
In addition, several other small discrepancies were addressed, | ||
including handling of localhost and broadcast host names. |
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
Oops, something went wrong.