[mosh-devel] How high can we set the mosh keepalive interval ?

Seth Teller teller at csail.mit.edu
Mon Jun 3 23:19:19 EDT 2013


Hello mosh'ers,

We are running mosh over a metered network as part of a robotic
competition.   We found that a quiet mosh session (open shell,
no typing) uses tens of bytes per second.  We'd like to drop that
to zero, or as close to zero as possible, so that we pay for bits
only when we absolutely have to type something in the shell.

One way to do this, as per Hari, would be to increase the keepalive
interval (in transportsender.h) past its default value of 3 seconds:

     const int ACK_INTERVAL = 3000; /* ms between empty acks */

Can we disable keepalive and still have a working shell?  If not,
how high can we set ACK_INTERVAL without breaking mosh?

Thanks.








More information about the mosh-devel mailing list