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

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1129; Package x2gobroker. (Tue, 20 Dec 2016 12:10:02 GMT) (full text, mbox, link).


Acknowledgement sent to Miguel Quero <mquero@one-esecurity.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Tue, 20 Dec 2016 12:10:02 GMT) (full text, mbox, link).


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

From: Miguel Quero <mquero@one-esecurity.com>
To: submit@bugs.x2go.org
Subject: x2gobroker-ssh big delay in session status recovery
Date: Tue, 20 Dec 2016 12:55:21 +0100
[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)]

Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1129; Package x2gobroker. (Thu, 13 Sep 2018 12:30:01 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Thu, 13 Sep 2018 12:30:02 GMT) (full text, mbox, link).


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

From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 1129@bugs.x2go.org
Cc: Miguel Quero <mquero@one-esecurity.com>
Subject: Re: x2gobroker-ssh big delay in session status recovery
Date: Thu, 13 Sep 2018 12:27:15 +0000
[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: Tue Dec 3 17:10:34 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.