~x2go/x2go/python-x2go_master

Viewing all changes in revision 1493.

  • Committer: Mike Gabriel
  • Author(s): Tomáš Cerha
  • Date: 2022-06-22 20:45:39 UTC
  • Revision ID: git-v1:8dc074e4a2bf630b14f50c41ce0154cb223b3b9a
Prevent infinite loop in X2GoRevFwTunnel handler

Without this change, we observed a running X2Go session freezing after about 3
hours running on Windows with the following output:

WARN: Reverse tunnel <paramiko.Channel 16 (open) window=2036405 ->
<paramiko.Transport at 0x4e4f270L (cipher aes128-ctr, 128 bits) (active; 2 open
channel(s))>> encoutered socket error: [Errno 10054] An existing connection was
forcibly closed by the remote host

Breaking after catching 1024 socket errors prevents looping forever.  The
tunnel is automatically closed, which allows the application to reopen it
automatically and recover gracefully from the situation.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: