Commit Graph

1427 Commits

Author SHA1 Message Date
Keith Winstein 5eafc209ea Allow suspend by keystroke (Ctrl-^ Ctrl-Z)
(based on patch by Nickolai Zeldovich)
2012-11-26 03:34:14 -05:00
Keith Winstein 1c2b48abc6 mosh-server warning on unattached servers checks that device exists 2012-11-26 03:06:11 -05:00
Keith Winstein 2f8a67acc7 Adjust timeouts so server dies quicker, updates utmp slower 2012-11-26 02:21:06 -05:00
Keith Winstein 486325e76b mosh-server: Fix bug where spins forever if process dies while disconnected 2012-11-26 02:14:48 -05:00
Keith Winstein 6a16eecce0 Use dup() instead of move semantics for Network::Socket 2012-11-23 13:31:23 -05:00
Keith Winstein 05ec364b7d Verify $port_request defined before scanning it for error purposes 2012-11-09 11:56:28 -05:00
Keith Winstein 3811249787 Merge branch 'humane-times'
Closes #333
2012-11-05 22:05:10 -05:00
Keith Winstein b018e3a1ab Make "elapsed time" human readable even when other error is displayed 2012-11-05 22:02:46 -05:00
Keith Winstein cdd00fee42 Simplify implementation of human_readable_duration() 2012-11-05 21:57:02 -05:00
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
Keith Winstein 07b2942945 Friendlier error message when server does not support UDP port range. 2012-10-29 15:35:56 -04:00
Peter Iannucci 93507a7195 macosx: builds a universal package for i386, x86_64. 2012-10-29 15:08:14 -04:00
Luke Mewburn 3e3510d382 Display results at end of configure.
Display configuration results at end of configure run,
including the version, c++ compiler, and various
compiler flag variables.

Signed-off-by: Luke Mewburn <luke@mewburn.net>
2012-10-29 15:03:13 -04: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 b99da057bb Back out use of ip.h IPTOS_DSCP_AF42 constant (missing on OS X) 2012-10-22 10:50:28 -04:00
Keith Winstein c53a174d0c Revert "Check for netinet/ip.h (now that we are using it), and don't also use in.h"
This reverts commit 0909ea55d6.
2012-10-22 10:50:07 -04:00
Keith Winstein 0909ea55d6 Check for netinet/ip.h (now that we are using it), and don't also use in.h 2012-10-22 10:34:16 -04:00
olgeni 2e39dbc977 Fix calls to setsockopt.
On FreeBSD, the socket option length must be declared as an int.

While I'm here, translate dscp (0x92) to the appropriate constants.

(tested on FreeBSD only so far)
2012-10-22 14:29:39 +02:00
Keith Winstein da18a8c7ea Detect edge case when argc == 0 2012-10-20 14:17:19 -04:00
Alexander Chernyakhovsky 06661c9f25 Update mosh.spec for mosh 1.2.3 2012-10-19 18:32:25 -04:00
Keith Winstein 73a2675e8c Bump version to 1.2.3 2012-10-19 15:33:48 -04:00
Keegan McAllister cd394c61ae Allow building the ocb.c test program with -DOCB_TEST_PROGRAM 2012-10-19 15:33:48 -04:00
Keegan McAllister ee8d0ce582 Fix ocb.c test program so it builds with -Wall -Werror 2012-10-19 15:33:48 -04:00
Keegan McAllister 029e8bbde5 Import 08-SEP-2012 version of ocb.c
... plus the local changes from:

  3b2604b Handle early gcc compilers that are missing __builtin_bswap64 or __builtin_ctz
  e8236c5 Use AlignedBuffer stedda posix_memalign(). Should work on PPC OS X 10.5.
  9827d12 Switch to OpenSSL AES
2012-10-19 15:33:48 -04:00
Keith Winstein e50822ea4d Update Debian policy version and point to https github URL 2012-10-16 17:59:23 -04:00
Keith Winstein 39276a46ad More conservative default MTU, and react to MSGSIZE 2012-10-16 17:46:05 -04:00
Keith Winstein be3b1259b6 Make sendto() non-blocking 2012-10-16 17:40:02 -04:00
Keith Winstein fffbf17f57 Update THANKS 2012-10-05 21:55:08 -04:00
Keith Winstein 9c34f5b279 Bump version to 1.2.2.95rc1 (1.2.3 release candidate) 2012-10-05 19:50:52 -04:00
Keith Winstein 052e7cc812 Change assert() to fatal_assert() since can be triggered by evil sender 2012-10-05 04:14:49 -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 50e75b3127 Make sure we're not querying fds that we never polled for in the first place 2012-10-04 23:53:34 -04:00
Keith Winstein b8df3eed11 Lengthen port hop interval to 30 seconds 2012-10-04 23:46:08 -04:00
Keith Winstein 9eb9a0386e Warn on congestion 2012-10-04 21:47:58 -04:00
Keith Winstein 9cf411ac3f Change server association timeout to 40 seconds 2012-10-04 21:45:42 -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
Keith Winstein 9ac3b65090 Respond to explicit congestion notification (slow down sender) 2012-09-28 19:07:31 -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 815aff9a73 Don't assert has_remote_addr, because can change between fragments. 2012-08-15 23:58:21 +03: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 5376ed1996 Use end-to-end-to-end connectivity (in transport layer) to control port hop.
Avoid playing games with network-layer timestamps.
2012-08-13 16:48:25 +03:00
Keith Winstein a21fed3dca Remove automatic hopping triggers from SSP. 2012-08-13 14:59:20 +03:00
Keith Winstein 82830344ca Hop ports when missing E2E2E connectivity, even if downlink working. 2012-08-13 14:26:53 +03:00
Keith Winstein 89da6105aa When not connected, (1) client hops port numbers (2) server stops sending. 2012-08-13 11:19:25 +03:00
Keith Winstein 56093d2961 Not all OpenSSH installations support GSSAPITrustDns=no, so this broke some.
This reverts commit dce0c7f880.
2012-08-12 19:57:19 +02:00