Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
c15c219e
Commit
c15c219e
authored
Apr 19, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt workaround for broken c-ares on Win/Py2
parent
2cfefc91
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
4 deletions
+37
-4
CHANGES.rst
CHANGES.rst
+2
-0
deps/README.rst
deps/README.rst
+5
-0
deps/c-ares/ares_gethostbyname.c
deps/c-ares/ares_gethostbyname.c
+4
-4
deps/cares-win32.patch
deps/cares-win32.patch
+26
-0
No files found.
CHANGES.rst
View file @
c15c219e
...
...
@@ -29,6 +29,8 @@
- Upgrade libev from 4.23 to 4.25 and update its embedded
``config.guess`` to the latest.
- Upgrade c-ares from 1.14 to 1.15.
- dnspython >= 1.16.0 is now required for the dnspython resolver.
- Python 3.7 subprocess: Copy a ``STARTUPINFO`` passed as a parameter.
...
...
deps/README.rst
View file @
c15c219e
...
...
@@ -53,6 +53,11 @@ Updating c-ares
At this point there might be new files in libuv that need added to
git, evaluate them and add them.
- Evaluate whether the release has
https://github.com/c-ares/c-ares/issues/246 fixed. If not, ``git
apply cares-win32.patch``. If so, then delete that file and this
part of the instructions.
- Follow the same 'config.guess' and 'config.sub' steps as libev.
...
...
deps/c-ares/ares_gethostbyname.c
View file @
c15c219e
...
...
@@ -346,10 +346,6 @@ static int file_lookup(const char *name, int family, struct hostent **host)
int
status
;
int
error
;
/* Per RFC 7686, reject queries for ".onion" domain names with NXDOMAIN. */
if
(
ares__is_onion_domain
(
name
))
return
ARES_ENOTFOUND
;
#ifdef WIN32
char
PATH_HOSTS
[
MAX_PATH
];
win_platform
platform
;
...
...
@@ -387,6 +383,10 @@ static int file_lookup(const char *name, int family, struct hostent **host)
return
ARES_ENOTFOUND
;
#endif
/* Per RFC 7686, reject queries for ".onion" domain names with NXDOMAIN. */
if
(
ares__is_onion_domain
(
name
))
return
ARES_ENOTFOUND
;
fp
=
fopen
(
PATH_HOSTS
,
"r"
);
if
(
!
fp
)
{
...
...
deps/cares-win32.patch
0 → 100644
View file @
c15c219e
diff --git a/deps/c-ares/ares_gethostbyname.c b/deps/c-ares/ares_gethostbyname.c
index 8187746b..fb73826b 100644
--- a/deps/c-ares/ares_gethostbyname.c
+++ b/deps/c-ares/ares_gethostbyname.c
@@ -346,10 +346,6 @@
static int file_lookup(const char *name, int family, struct hostent **host)
int status;
int error;
- /* Per RFC 7686, reject queries for ".onion" domain names with NXDOMAIN. */
- if (ares__is_onion_domain(name))
- return ARES_ENOTFOUND;
-
#ifdef WIN32
char PATH_HOSTS[MAX_PATH];
win_platform platform;
@@ -387,6 +383,10 @@
static int file_lookup(const char *name, int family, struct hostent **host)
return ARES_ENOTFOUND;
#endif
+ /* Per RFC 7686, reject queries for ".onion" domain names with NXDOMAIN. */
+ if (ares__is_onion_domain(name))
+ return ARES_ENOTFOUND;
+
fp = fopen(PATH_HOSTS, "r");
if (!fp)
{
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment