tmate-io / tmate

Instant Terminal Sharing
https://tmate.io/
Other
5.69k stars 304 forks source link

slow ssh sharing #230

Open natesire opened 3 years ago

natesire commented 3 years ago

Any tips on fixing the latency with the ssh live share feature? The lag, latency, is almost 10 seconds sometimes. SSH is faster than http. Not sure why there is such high latency for text data?

kcubeterm commented 3 years ago

The lag, latency, is almost 10 seconds sometimes.

Look like you are using static binary. Related to #220

natesire commented 3 years ago

I need to compile from source on OSX? I will check if I used homebrew or static dmg binary for OSX.

kcubeterm commented 3 years ago

Compiling from source resolve the issue, I did same with termux.

natesire commented 3 years ago

The leaders over on the Tmux refuse to update their documents to help users address this issue. Sure glad you forked this to Tmate are much more open to fixing this. Because this is the only tool I can find for pair programming. Everything else is a disaster for cross desktop pairing.

kcubeterm commented 3 years ago

Have you compiled this from source ? If not then what stop you from that.

natesire commented 3 years ago

It worked 100% on OSX. But not on Ubuntu. Working on it.

natesire commented 3 years ago

We are going to need a bash script to setup many needed things for Ubuntu compilaton.

aclocal is missing

https://kerneltalks.com/troubleshooting/how-to-resolve-aclocal-not-found-error-in-ubuntu/

configure.ac line 124 undefined macro, AC_SEARCH-LIBS

natesire commented 3 years ago

colombia@colombia-desktop ~/tmate (master)$ sh autogen.sh configure.ac:17: installing 'etc/compile' configure.ac:9: installing 'etc/config.guess' configure.ac:9: installing 'etc/config.sub' configure.ac:7: installing 'etc/install-sh' configure.ac:7: installing 'etc/missing' Makefile.am: installing 'etc/depcomp' configure.ac:124: error: possibly undefined macro: AC_SEARCH_LIBS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 autoreconf failed colombia@colombia-desktop ~/tmate (master)$

This was because I was on an older version of Ubuntu.

natesire commented 3 years ago

I compiled it successfully by upgrading Ubuntu to the latest release. Ubuntu 20.04.1 LTS I will let you know how the latency improves.

kcubeterm commented 3 years ago

Basically latency depends on your network and server too, if you still get high latency then you have to troubleshoot your network.