Kevin Ballard
efbe9b2bab
Make the 'lost contact' string more human-readable
...
Teach the 'lost contact' warning string about time units larger than
seconds. After 60 esconds it will switch over to using a time display
that looks like 1:23, or 1:02:34.
Fixes #321 .
Signed-off-by: Kevin Ballard <kevin@sb.org >
2012-11-05 18:39:09 -08:00
Keith Winstein
28ed30c356
Allow stopping (via kill -STOP) and "fg" to resume session
2012-11-04 13:07:24 -05:00
Luke Mewburn
141ec239da
Support port range as -p/--port PORT[:HIGHPORT].
...
Extend mosh and mosh-server to support parsing a high port from
the desired_port argument. The first (low) port must not be
greater than the second (high) port.
If only one value is provided, behaviour is as before; bind
to one port. Also tweak the formatting in mosh-server(1) synopsis
to be consistent.
This resolves mosh issue # 296.
Signed-off-by: Luke Mewburn <luke@mewburn.net >
2012-10-29 14:59:28 -04:00
Keith Winstein
da18a8c7ea
Detect edge case when argc == 0
2012-10-20 14:17:19 -04:00
Ira Cooper
deecf6bb2f
Add limits.h to allow for illumos to compile.
...
Closes #331
2012-10-05 04:02:11 -04:00
Keith Winstein
c0092a6e7e
Hop new ports, but keep the old [for a minute, and up to 10 at a time]
...
(One is silver and the other gold...)
2012-10-05 02:51:25 -04:00
Keith Winstein
d17fb7824b
Reset fd sets every time we poll (because network.fd() can now change)
2012-10-05 00:06:37 -04:00
Keith Winstein
f621f9f001
Grammar fix on ssh -t message
2012-09-28 20:17:58 -04:00
Keith Winstein
0311365810
Read utmpx directly instead of using "who", and prettify detached warning
2012-09-28 20:06:04 -04:00
Xi Wang
f0d9cb3db3
Avoid null pointer dereference in chdir_homedir()
...
Return if pw is NULL, to avoid dereferencing it at pw->pw_dir.
2012-09-26 22:27:24 -04:00
Keith Winstein
bf8a29f783
Improve rendition-matching prediction heuristic.
2012-08-14 07:40:50 -04:00
Keith Winstein
63e66e9855
Add heuristic to match predicted rendition based on char to the left
2012-08-13 10:56:50 -04:00
Keith Winstein
89da6105aa
When not connected, (1) client hops port numbers (2) server stops sending.
2012-08-13 11:19:25 +03:00
Timo Sirainen
9296ffbed7
Don't reopen stdio. It's not needed, and it doesn't compile with Solaris.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:45 -04:00
Timo Sirainen
9cade23616
It's safer to close stdin/out/err by replacing their fd with /dev/null.
...
Otherwise the next opened fds are 0/1/2, and any code writing to
stdout/stderr might break things by writing to an unintentional fd.
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:45 -04:00
Timo Sirainen
b245ed00ca
Don't call setsid(), forkpty() does it anyway. This fixes a failing ioctl(TIOCSCTTY) in Solaris.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:45 -04:00
Timo Sirainen
0c5307f345
Added forkpty() and cfmakeraw() fallback implementations if they don't exist.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Keith Winstein
894a190f06
Revert creation of utmp entry to avoid uninitialized "master"
2012-08-11 17:13:43 -04:00
Keith Winstein
c073ad364a
get_SSH_IP gracefully handles missing, IPv6-formatted environment var
...
Closes #292 github issue.
2012-07-26 22:54:45 -04:00
Keith Winstein
a744004bf6
Get system timestamp less often (only after sleeping/selecting)
2012-07-26 21:13:26 -04:00
Keith Winstein
2cb2f3aeb5
Tidy up unattached warning, only print when showing motd
2012-07-23 01:25:55 -04:00
Keith Winstein
549cf0a9bd
Warn of unattached Mosh sessions on login
2012-07-23 01:16:57 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keith Winstein
57c4904ed8
Switch to OpenSSL base64 routines
2012-07-20 16:00:21 -04:00
Keith Winstein
2df9e07926
Add "experimental" mode to local echo (always predict even when incorrect)
2012-06-11 13:21:44 -04:00
Keith Winstein
37f78d0e4c
Disable out-of-order warning (fires too much on some 802.11n networks)
...
This reverts commit 682bbdfebd .
2012-05-30 02:04:32 -04:00
Keith Winstein
78a5eaf8e3
Clearer error message on invalid port ( closes #278 )
2012-05-24 17:16:03 -04:00
Keith Winstein
682bbdfebd
Warn on out-of-order or duplicated packets (or missing nonce increment!)
2012-05-23 18:08:31 -04:00
Keith Winstein
b9ed0cdaa6
Cleanups to "firewalled" quit scenario.
2012-05-23 12:05:59 -04:00
Keith Winstein
c0a8cd61ee
More graceful quit sequence when UDP is firewalled.
2012-05-23 11:48:10 -04:00
Larry Doolittle
eda48085ba
Simple spelling fixes
2012-05-23 05:11:05 -04:00
Keegan McAllister
dd941df19d
Remove unused sigfd and skalibs
...
Closes #265 .
2012-05-16 00:00:27 -04:00
Keegan McAllister
4f23326a92
Use Select signal handling in mosh-{client,server}
2012-05-16 00:00:27 -04:00
Keegan McAllister
6edc04ed1c
mosh-server: Ignore signals rather than blocking them
...
For pselect() we want to mess with the signal mask, and this is closer to our
intent anyway.
2012-05-16 00:00:27 -04:00
Keegan McAllister
768d4ce797
Make Select a singleton
...
It's going to manipulate process-global signal state, so multiple
instances do not make sense.
2012-05-16 00:00:27 -04:00
Keegan McAllister
bb651581a7
Remove unused poll(2) emulation
...
Closes #235 .
2012-05-16 00:00:27 -04:00
Keegan McAllister
2112a3865c
Use Select in mosh-{client,server}
2012-05-16 00:00:27 -04:00
Keegan McAllister
5bf681629d
mosh-server: Treat errors on pty read like EOF
...
Fixes #264 .
2012-05-16 00:00:27 -04:00
Keegan McAllister
dee09fb8fc
Update notification less often when disconnected for at least 60 s
...
Saves battery power. Closes #243 .
2012-05-09 14:19:46 -04:00
Keegan McAllister
24d2b6e185
Calculate wait_time separately for {Notification,Prediction}Engine
...
Simplifies access to private data, including the next commit.
git renders this diff poorly. It's a bit better with --patience.
2012-05-09 14:19:46 -04:00
Keegan McAllister
02c04fbdaa
Display sendto() exception until a successful send
2012-05-09 14:19:46 -04:00
Keegan McAllister
67a85eaf99
Deliver sendto() exceptions without disturbing control flow
...
This prevents the client from waking up every 200 ms while the network is down.
Addresses #243 .
2012-05-09 14:19:46 -04:00
Keegan McAllister
9dddcd8566
Move NetworkException formatting into NotificationEngine
2012-05-09 14:19:46 -04:00
Keith Winstein
0901cd8431
Don't flag blank->blank predictions.
2012-05-05 11:21:01 -04:00
Keegan McAllister
5cff456400
Define PROG, for newer versions of skalibs
...
Needed to build from our source tarball on some Gentoo systems.
Closes #239 .
Closes #254 .
2012-05-05 02:11:02 -04:00
Keith Winstein
2ea3f3a347
Warn when server has not heard from us (even if we have heard from server)
2012-04-30 22:43:45 -04:00
Massimo Gengarelli
49fc21c8a3
Catch by const reference (remove Eclipse warnings)
...
(closes #245 )
2012-04-29 02:24:31 -04:00
Keith Winstein
d5051569b8
COND_THIRD_POLL _overrides_ broken system poll; does not add to it.
...
Fixes OS X 10.6 problem from 7fe9f29 .
2012-04-25 02:22:38 -04:00
Anders Kaseorg
7fe9f29448
Set poll_LIBS = libpoll.a in Makefile.am so dependency tracking works
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-04-21 02:19:36 -04:00
Anders Kaseorg
735dcd6ad5
Clarify COND_THIRD_LIBSTDDJB code
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-04-21 02:19:13 -04:00