[X2Go-Commits] [python-x2go] 01/01: Enforce usage of the "ares" DNS resolver in python-gevent (which is available since Python gevent 1.0~). (Fixes: #588).

git-admin at x2go.org git-admin at x2go.org
Fri Aug 29 21:39:28 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit 454659b3e32bcb9041ee3c29d33b596604aea95a
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Aug 29 21:39:16 2014 +0200

    Enforce usage of the "ares" DNS resolver in python-gevent (which is available since Python gevent 1.0~). (Fixes: #588).
---
 debian/changelog |    2 ++
 x2go/__init__.py |    5 +++++
 2 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5347421..7b742ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -78,6 +78,8 @@ python-x2go (0.5.0.0-0x2go1) UNRELEASED; urgency=low
       aware of handling multiple connects on the same tunnel.
     - Rename LICENSE.txt to COPYING.
     - Be more exact when detecting the NX proxy window id.
+    - Enforce usage of the "ares" DNS resolver in python-gevent (which is
+      available since Python gevent 1.0~). (Fixes: #588).
   * debian/control:
     + Add dependencies: python-requests, python-simplejson.
   * python-x2go.spec:
diff --git a/x2go/__init__.py b/x2go/__init__.py
index ae5cd9a..4d95f45 100644
--- a/x2go/__init__.py
+++ b/x2go/__init__.py
@@ -185,6 +185,11 @@ Contact
 __NAME__    = 'python-x2go'
 __VERSION__ = '0.5.0.0'
 
+import os
+
+# enforce "ares" resolve in gevent (>= 1.0~)...
+os.environ["GEVENT_RESOLVER"] = "ares"
+
 from gevent import monkey
 monkey.patch_all()
 

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list