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


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 20 Dec 2016 12:08:04 +0000
From mquero@one-esecurity.com  Tue Dec 20 13:08:02 2016
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,HTML_MESSAGE,
	URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 7D42B3CC60
	for <submit@bugs.x2go.org>; Tue, 20 Dec 2016 13:08:02 +0100 (CET)
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 XAUy3DceTBoK for <submit@bugs.x2go.org>;
	Tue, 20 Dec 2016 13:07:55 +0100 (CET)
X-Greylist: delayed 724 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Tue, 20 Dec 2016 13:07:55 CET
Received: from jessland.net (200.red-81-47-178.staticip.rima-tde.net [81.47.178.200])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 408CA3CC5F
	for <submit@bugs.x2go.org>; Tue, 20 Dec 2016 13:07:55 +0100 (CET)
Received: from [127.0.0.1] (202.red-80-28-148.adsl.static.ccgg.telefonica.net [80.28.148.202])
	by jessland.net (8.12.11/8.12.11) with ESMTP id uBIE2L02006592
	for <submit@bugs.x2go.org>; Sun, 18 Dec 2016 15:02:42 +0100 (CET)
To: submit@bugs.x2go.org
From: Miguel Quero <mquero@one-esecurity.com>
Subject: x2gobroker-ssh big delay in session status recovery
Message-ID: <39e399fd-41ad-bb00-0abd-7b5401bbe82f@one-esecurity.com>
Date: Tue, 20 Dec 2016 12:55:21 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------DEE3B450ED3861DE2173B678"
[Message part 1 (text/plain, inline)]
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.

Best regards.
 


-- 
Miguel Quero | One eSecurity | www.one-esecurity.com
M: +34 608 36 17 05
Europe (Spain): +34 911 011 000
PGP: 0x34AA 050B D15C 7593 5671 3748 40C6 8E95 6C5A 40D3

[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 16:37:16 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.