[Python-apps-team] Bug#710866: xpra: attach timeouts if initial SSH latency is too high

Timo Juhani Lindfors timo.lindfors at iki.fi
Mon Jun 3 06:50:54 UTC 2013


Package: xpra
Version: 0.9.4+dfsg-1
Severity: normal

Steps to reproduce:
1) To simulate SSH that takes a while to connect, create a file named
   "slowssh.bash" with the following contents and make it executable:

#!/bin/bash
sleep 15
exec /usr/bin/ssh "$@"

2) xpra attach --ssh ./slowssh.bash ssh:server.example.com:7

Expected results:
2) xpra tolerates the 15-second latency in the initial SSH handshake.

Actual results:
2) xpra tiemouts every time after about 8 seconds:

xpra client version 0.9.4
2013-06-03 06:39:18,401 check_server_echo: server is not responding, redrawing spinners over the windows
2013-06-03 06:39:26,421 connection closed after 0 packets received (0 bytes) and 3 packets sent (8356 bytes)
2013-06-03 06:39:26,422 Connection lost
2013-06-03 06:39:26,428 check_server_echo: server is OK again, stopping redraw

More info:
1) This occurs on real mobile connections especially when I chain
   multiple SSH connections together with something like the following
   in ~/.ssh/config:

Host server.example.com
 ProxyCommand ssh gateway.example.com nc -w 3 %h %p

2) This did not occur with xpra 0.3.11+dfsg-1

3) I can understand the need for a timeout but maybe it could be
   configurable? I tried to find the timeout from the source but
   couldn't find it in a few minutes.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xpra depends on:
ii  libavcodec53              6:0.8.7-1
ii  libc6                     2.17-4
ii  libswscale2               6:0.8.7-1
ii  libvpx1                   1.2.0-2
ii  libwebp2                  0.1.3-3+nmu1
ii  libx11-6                  2:1.5.0-1+deb7u1
ii  libx264-123               2:0.123.2189+git35cf912-1
ii  python                    2.7.3-5
ii  python-gtk2               2.24.0-3+b1
ii  python-wimpiggy           0.9.4+dfsg-1
ii  x11-xserver-utils         7.7~3
ii  xserver-xorg-input-void   1:1.4.0-1+b1
ii  xserver-xorg-video-dummy  1:0.3.5-2+b1

Versions of packages xpra recommends:
ii  openssh-client  1:6.2p2-3
ii  python-imaging  1.1.7-4
ii  ssh-askpass     1:1.2.4.1-9

Versions of packages xpra suggests:
ii  gstreamer0.10-plugins-bad   0.10.23-7.1
ii  gstreamer0.10-plugins-good  0.10.31-3+nmu1
ii  gstreamer0.10-plugins-ugly  0.10.19-2+b2
pn  openssh-server              <none>
ii  pulseaudio                  2.0-6.1
ii  pulseaudio-utils            2.0-6.1
ii  python-dbus                 1.2.0-1
ii  python-gst0.10              0.10.22-3
pn  python-gtkglext1            <none>

-- no debconf information



More information about the Python-apps-team mailing list