X2Go Bug report logs - #1129
x2gobroker-ssh big delay in session status recovery

version graph

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

Reported by: Miguel Quero <mquero@one-esecurity.com>

Date: Tue, 20 Dec 2016 12:10:02 UTC

Severity: normal

Found in version 0.0.3.1

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1129: x2gobroker-ssh big delay in session status recovery
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 1129@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: Thu, 13 Sep 2018 12:30:01 +0000
Resent-Message-ID: <handler.1129.B1129.153684164927036@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 1129
X-X2Go-PR-Package: x2gobroker
X-X2Go-PR-Keywords: 
Received: via spool by 1129-submit@bugs.x2go.org id=B1129.153684164927036
          (code B ref 1129); Thu, 13 Sep 2018 12:30:01 +0000
Received: (at 1129) by bugs.x2go.org; 13 Sep 2018 12:27:29 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.1 required=3.0 tests=BAYES_00,RDNS_NONE,
	URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.1
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id D5B375DAEE
	for <1129@bugs.x2go.org>; Thu, 13 Sep 2018 14:27:27 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id TsKBpbp0iG8O for <1129@bugs.x2go.org>;
	Thu, 13 Sep 2018 14:27:22 +0200 (CEST)
Received: from fregna.das-netzwerkteam.de (unknown [IPv6:2a01:4f8:202:1381::1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id BA3E75DA81
	for <1129@bugs.x2go.org>; Thu, 13 Sep 2018 14:27:21 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [148.251.201.105])
	by fregna.das-netzwerkteam.de (Postfix) with ESMTPS id 9D94F604F6;
	Thu, 13 Sep 2018 12:27:21 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 93631C2711;
	Thu, 13 Sep 2018 14:27:21 +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 eMdSreIgEGzl; Thu, 13 Sep 2018 14:27:16 +0200 (CEST)
Received: from das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id F27AFC2690;
	Thu, 13 Sep 2018 14:27:15 +0200 (CEST)
Received: from bifrost.das-netzwerkteam.de (bifrost.das-netzwerkteam.de
 [178.62.101.154]) by mail.das-netzwerkteam.de (Horde Framework) with HTTPS;
 Thu, 13 Sep 2018 12:27:15 +0000
Date: Thu, 13 Sep 2018 12:27:15 +0000
Message-ID: <20180913122715.Horde.BYMw_KeaXSF6jGAoUKkBre5@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 1129@bugs.x2go.org
Cc: Miguel Quero <mquero@one-esecurity.com>
User-Agent: Horde Application Framework 5
Accept-Language: de,en
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 178.62.101.154
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Firefox/52.0
Content-Type: multipart/signed; boundary="=_0kSUhmj5L8YYuBGj6jRP6r5";
 protocol="application/pgp-signature"; micalg=pgp-sha256
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Dear Miguel,

> Package: x2gobroker
> Version: 0.0.3.1
>
> When x2gobroker-ssh is used with system with not IPv6 configured,  
> this generate very big delays in x2gobroker listsession task.
>
> Before some research, the problem become from x2gobroker.utils  
> portscan function.
>
> This function propagates a delay in all agents call because it tests  
> first the IPV6 connection:
>
> /ip_proto = 0////try:////socket.getaddrinfo(addr, None,  
> socket.AF_INET6)////ip_proto = 6////except  
> socket.gaierror:////try:////socket.getaddrinfo(addr, None,  
> socket.AF_INET)////ip_proto = 4////except socket.gaierror:////# we  
> can't find a valid address for this host, so returning a  
> failure...////return False /This will be fixed testing IPv4 first or  
> more easily, setting a new option in config to select the ip protocol.
>

A while ago you reported the above issue.

I tested this now.

The portscan function in x2gobroker.utils is really fast when  
detecting that a remote host is not IPv6 supportive. It basically is a  
fast DNS query.

Is it so, that your client system has IPv4 disabled entirely (in the  
kernel)? Or what exactly did you mean by "When x2gobroker-ssh is used  
with system with not IPv6 configured..."?

I am willing to do more test, please provide more info. You possibly  
also have found a fix meanwhile. If so, I'd be happy, if you could  
share it.

Thanks
Mike




-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[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 Apr 24 01:21:45 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.