X2Go Bug report logs - #588
GEVENT_RESOLVER=ares should be preferred

version graph

Package: python-x2go; Maintainer for python-x2go is X2Go Developers <x2go-dev@lists.x2go.org>; Source for python-x2go is src:python-x2go.

Reported by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Date: Fri, 29 Aug 2014 14:25:01 UTC

Severity: important

Tags: pending

Fixed in version 0.5.0.0

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


đź”— View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#588: GEVENT_RESOLVER=ares should be preferred
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 588@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 29 Aug 2014 14:25:01 +0000
Resent-Message-ID: <handler.588.B.140932211419711@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 588
X-X2Go-PR-Package: python-x2go
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.140932211419711
          (code B); Fri, 29 Aug 2014 14:25:01 +0000
Received: (at submit) by bugs.x2go.org; 29 Aug 2014 14:21:54 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SUBJ_OBFU_PUNCT_FEW
	autolearn=no version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 944D55DB3E
	for <submit@bugs.x2go.org>; Fri, 29 Aug 2014 16:21:53 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 1FF9F1412
	for <submit@bugs.x2go.org>; Fri, 29 Aug 2014 16:21:53 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 0EE823BBD3
	for <submit@bugs.x2go.org>; Fri, 29 Aug 2014 16:21:53 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Bd8AysBIQv-F for <submit@bugs.x2go.org>;
	Fri, 29 Aug 2014 16:21:52 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id C624F3BABE
	for <submit@bugs.x2go.org>; Fri, 29 Aug 2014 16:21:52 +0200 (CEST)
Received: from 46.114.41.225 ([46.114.41.225]) by mail.das-netzwerkteam.de
 (Horde Framework) with HTTP; Fri, 29 Aug 2014 14:21:52 +0000
Date: Fri, 29 Aug 2014 14:21:52 +0000
Message-ID: <20140829142152.Horde.Rvytg4DkUxNQ4e9EZ5Ls1w2@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: submit@bugs.x2go.org
User-Agent: Internet Messaging Program (IMP) H5 (6.2.0)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 46.114.41.225
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101
 Firefox/31.0 Iceweasel/31.0
Content-Type: multipart/signed; boundary="=_Kwm4nTgULoyJwK_c_u7zVA6";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Package: python-x2go
Severity: important

Since python-gevent 1.0 gevent fails to detect DNS changes (e.g. when  
connecting to a VPN server).

From http://gevent.org/whatsnew_1_0.html :

"""
New dns resolver

Two new DNS resolvers: threadpool-based one (enabled by default) and  
c-ares based one. That threadpool-based resolver was added mostly for  
Windows and Mac OS X platforms where c-ares might behave differently  
w.r.t system configuration. On Linux, however, the c-ares based  
resolver is probably a better choice. To enable c-ares resolver set  
GEVENT_RESOLVER=ares environment variable.

This fixes some major issues with DNS on 0.13.x, namely:

    Issue #2: DNS resolver no longer breaks after fork(). You still  
need to call gevent.fork() (os.fork is monkey patched with it if  
monkey.patch_all() was called).
    DNS resolver no longer ignores /etc/resolv.conf and /etc/hosts.

The following functions were added to socket module:

    gethostbyname_ex
    getnameinfo
    gethostbyaddr
    getfqdn

It is possible to implement your own DNS resolver and make gevent use  
it. The GEVENT_RESOLVER variable can point to alternative  
implementation using the format: package.module.class. The default is  
gevent.resolver_thread.Resolver. The alternative “ares” resolver is an  
alias for gevent.resolver_ares.Resolver.
"""

Thus: we need to enforce setting of env variable GEVENT_RESOLVER=ares  
in Python X2Go.

Mike
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Dec 4 08:33:54 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.