Commit Graph

56 Commits

Author SHA1 Message Date
Quentin Smith a1671bcf3b Handle the absence of IP_MTU_DISCOVER 2012-03-07 03:05:36 -05:00
Quentin Smith e8d14d35a6 Add boost and protobuf in the places where they are needed
[seph@directionless.org, andersk@mit.edu: add in even more places]
2012-03-07 03:05:36 -05:00
Quentin Smith 582bf347c9 Add alternate timestamp implementations
Add mach_absolute_time and gettimeofday timestamp implementations, and
fix clock_gettime check so that it can actually succeed
2012-03-07 03:05:36 -05:00
Quentin Smith 26e9e91adb Cast MB_CUR_MAX to type size_t 2012-03-07 03:05:36 -05:00
Quentin Smith 96fe2349bb Remove check for __STDC_ISO_10646__
On most systems, even if __STDC_ISO_10646__ is not declared, wchar_t
will be correct in a UTF-8 locale. The client and server both enforce
a locale check on startup.
2012-03-07 03:05:36 -05:00
Quentin Smith 5c1020c51a Add configure test for protoc 2012-03-07 03:05:36 -05:00
Quentin Smith 17d6962af8 Check for proper byteorder functions
[andersk@mit.edu: Add byteorder.h to libmoshcrypto_a_SOURCES]
2012-03-07 03:05:36 -05:00
Quentin Smith b03d53d421 Make libutempter optional 2012-03-07 03:05:36 -05:00
Quentin Smith 1b0686a7ea Stop overriding LIBS so that configure can properly set it 2012-03-07 03:05:35 -05:00
Anders Kaseorg c71f8e2dc2 Use automake’s silent-rules mode if available, for quieter build output
With automake 1.11, this gives us Linux kernel–style silent output
that makes warnings more obvious:

  GEN    userinput.pb.cc
  CXX    userinput.pb.o
  AR     libmoshprotos.a
  CXXLD  mosh-client

(Use ‘make V=1’ for the traditional verbose output.)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-03-07 03:05:35 -05:00
Anders Kaseorg aad760e7d6 Make warning CXXFLAGS configurable
This turns off -Werror by default except in the Debian package.
-Werror is inherently unportable and breaks things on OS X.  While it
can cause problems in Debian too, this is at least a little better.

It also turns off -pedantic in src/protobufs, because apparently
protoc output doesn’t compile with -pedantic on all platforms.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-03-07 03:05:35 -05:00
Keegan McAllister b59f0f1482 Make mosh-server exit if there's no connection within 60 seconds
Fixes #30 github issue.
2012-03-06 12:17:48 -08:00
Keegan McAllister 69b7c5cf44 Save calculated time since latest remote state
This avoids duplicating a long expression in a future commit.
2012-03-06 11:58:30 -08:00
Keegan McAllister 12fcf6800a Change timeout from -1 to INT_MAX in TransportSender
This allows min() to work properly on timeouts.
2012-03-06 11:57:45 -08:00
Keegan McAllister e35733a2c1 Rename 'attached' to 'has_remote_addr'
Even with future support for detaching and reattaching, this variable will keep
its original meaning.
2012-03-06 11:54:56 -08:00
Keith Winstein 9e13176d96 Fix build problem on i386 2012-02-26 13:51:11 -05:00
Keith Winstein b2abc0d9b6 Fix bug causing too-aggressive prediction (showing part of passwords) 2012-02-26 05:20:16 -05:00
Keith Winstein 7a9f92d7f1 Compress all instructions (closes #19 github issue) 2012-02-26 04:41:03 -05:00
Keith Winstein f0886a1dda Add const to fragmenter 2012-02-26 03:59:00 -05:00
Keith Winstein e5c8c33f4f Fix timing of echo acks 2012-02-26 02:49:53 -05:00
Keith Winstein afacda98e4 Fix propagation of "unknown" last column on emacs and emacs-like delete 2012-02-25 23:08:56 -05:00
Keith Winstein f0199e2695 Bump version numbers (including Mosh protocol version)
This server is now incompatible with older clients and vice versa.
2012-02-25 15:16:21 -05:00
Keith Winstein 10fdb6abff Make echo ack the ONLY check for prediction expiration (closes #16 on github) 2012-02-25 15:06:47 -05:00
Keith Winstein 3a92cd1393 Explicit echo ack protobuf with reliable semantics 2012-02-25 14:34:39 -05:00
Keith Winstein e9ce05bc7b Lengthen blue bar timeout to require two heartbeat drops (closes #20 gh issue) 2012-02-25 12:20:00 -05:00
Keith Winstein cdbdcbb224 Print newline before MOSH CONNECT string (fixes #22 github issue) 2012-02-25 12:17:09 -05:00
Keith Winstein a2b293c027 Make retry more aggressive even absent new data (fixes #23 github issue) 2012-02-25 12:12:16 -05:00
Keith Winstein 58b584a2b3 Move from protobuf-lite to protobuf to accommodate Ubuntu lucid
Add changelog entry
2012-02-20 00:40:08 -05:00
Keith Winstein ba6329e528 Better fix to alignment issue 2012-02-19 21:53:13 -05:00
Keith Winstein b06204e72b Fix alignment problem under clang (per nelhage) 2012-02-19 21:48:59 -05:00
Anders Kaseorg 689eedc271 Compile without --std=c++0x
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 21:29:51 -05:00
Anders Kaseorg 7d19fbe203 Replace C++0x auto with Boost Typeof library
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 21:29:51 -05:00
Anders Kaseorg bd3ffb85d5 Replace C++0x lambda with Boost Lambda Library
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 21:29:51 -05:00
Anders Kaseorg f914d1747d Replace C++0x nullptr with 0
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 20:22:12 -05:00
Anders Kaseorg 6c52c1d306 Purge ‘using namespace std’ from header files
std::bind and boost::lambda::bind don’t mix.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 20:22:12 -05:00
Anders Kaseorg 32ff4af359 Fix wchar_t format string types
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 20:22:12 -05:00
Anders Kaseorg af649a035c Add missing #includes
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-17 19:24:51 -05:00
Keith Winstein 309e38d889 Use environment variable to convey prediction display preference 2012-02-13 06:07:26 -05:00
Keith Winstein feb64eec52 Make utmp entries using utempter 2012-02-13 05:43:07 -05:00
Keith Winstein 8c7c5340d4 User selectable prediction mode (fixes #9 github issue) 2012-02-13 03:50:03 -05:00
Keith Winstein c34986471c Give credit to deletion at end of line per Bill (fixes #10 github issue) 2012-02-13 02:44:13 -05:00
Keith Winstein 20f03791a3 Detach from terminal before forkpty(). fixes #8 (github issue) 2012-02-13 02:17:09 -05:00
Keith Winstein 0b4cf8af3d Only display prediction overlay when triggered by slowness
Here we maintain the predictions always, but we only display the overlay
when either a threshold of smoothed round-trip time is met or temporarily
after a "glitch."
2012-02-09 02:56:01 -05:00
Keith Winstein 354dff39c8 Catch and prettyprint exceptions even in setup phase 2012-02-09 01:45:03 -05:00
Keith Winstein d8533ca3a6 Get rid of PMTU discovery; Cisco VPN has MTU=1200 and breaks ICMP too-big. 2012-02-09 00:36:28 -05:00
Anders Kaseorg f6e47a4dd1 Add .gitignore files
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-07 16:47:58 -05:00
Anders Kaseorg cbe5911223 Compile *.pb.o with Automake’s rules
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-07 16:47:58 -05:00
Anders Kaseorg fab69fd98c Use protobuf_lite_CFLAGS and protobuf_lite_LIBS from configure
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-02-07 16:10:30 -05:00
Keith Winstein 3781a290c8 Add copyright/license notices 2012-02-06 20:52:48 -05:00
Keith Winstein a164a84496 Make examples compileable 2012-02-06 19:28:22 -05:00