Commit Graph

1019 Commits

Author SHA1 Message Date
Keegan McAllister 4f23326a92 Use Select signal handling in mosh-{client,server} 2012-05-16 00:00:27 -04:00
Keegan McAllister 1d0b16881c Switch to pselect(2) and add signal handling to Select class 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 7fc1aa30a5 Move dummy_fd_set into Select
Now that we have select.cc.
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 043f9af260 Use Select in examples 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 0019b9d92a Add a convenience wrapper for select(2) 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
Keith Winstein 9791768705 Cap escape sequence parameters to prevent long loops.
Fixes #271 github issue.
2012-05-15 23:46:09 -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 c258e0bc4e Make timing parameters public within namespace Network
So that UI timeouts can adjust accordingly.
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
Anders Kaseorg 1b86532a99 Only use AM_PROG_AR if it’s defined
Fixes
  aclocal:configure.ac:22: warning: macro `AM_PROG_AR' not found in library
and
  ./configure: line 4024: AM_PROG_AR: command not found
with old automake.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-05-09 14:08:30 -04:00
Keith Winstein 22375a2d54 Tabulation clear preserves wrap state (per davidben) 2012-05-06 20:01:39 -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
Keegan McAllister 7ac8b87b8f gitignore ar-lib, another autotools dropping
Closes #253
2012-05-05 02:09:38 -04:00
Keith Winstein 43182729ec More graceful output from failed verification 2012-05-05 01:53:28 -04:00
Keith Winstein 3573cec92a Enable round-trip verifier in verbose mode 2012-05-05 01:46:22 -04:00
Keith Winstein 48fbe3d0e1 Correctly handle wrapped lines where first portion is blank 2012-05-05 01:45:19 -04:00
Keith Winstein 3bdcc98ba4 Tab preserves, but does not set, wrap state when used in last col.
Fixes vttest regression.
2012-05-05 00:04:43 -04:00
Keith Winstein a82f50f085 Improve lossy connections by sending diff from "known" state if it's easy 2012-05-04 23:06:20 -04:00
Keith Winstein ce47d1f769 Fix bug in retransmission logic (improves performance on lossy links) 2012-05-02 23:55:13 -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
Keith Winstein e70254bad5 Add AM_PROG_AR for automake 1.12 (closes #250) 2012-04-30 14:58:53 -04:00
Massimo Gengarelli 49fc21c8a3 Catch by const reference (remove Eclipse warnings)
(closes #245)
2012-04-29 02:24:31 -04:00
Massimo Gengarelli fb6d07e566 Added Eclipse's files in .gitignore 2012-04-29 02:23:53 -04:00
Alexander Chernyakhovsky d07a2c565d Build mosh with -g and -O2 on Fedora 2012-04-28 14:07:45 -04:00
Alexander Chernyakhovsky 0df58a90da Update mosh.spec to match most recent in Fedora 2012-04-27 01:12:23 -04:00
Keith Winstein 68575f8587 Bump version to 1.2 2012-04-26 01:40:27 -04:00
Keith Winstein 6616d936f6 Revert "Include config.h in base64.cc to get restrict def (may address #241)"
This reverts commit f4c8417672.

config.h was already included via base64.h, and problem is older autoconf.
2012-04-25 12:42:34 -04:00
Keith Winstein f4c8417672 Include config.h in base64.cc to get restrict def (may address #241) 2012-04-25 12:20:53 -04:00
Keith Winstein ef939c75cf Bump version to 1.1.99b 2012-04-25 02:53:43 -04:00
Keith Winstein 37a13757f3 Update THANKS 2012-04-25 02:51:17 -04:00
Keith Winstein 460c6c24d9 Update copyright information for third/poll 2012-04-25 02:47:51 -04:00
Keith Winstein 1f1f818a29 Bump version to 1.1.99a (release candidate) 2012-04-25 02:31:15 -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
Keith Winstein 072863f0b9 Bump version to 1.1.99 (release candidate) 2012-04-24 23:56:05 -04:00
Ryan Steinmetz 56cc176d43 Fix libutil.h test under FreeBSD 7.x/8.x 2012-04-24 22:37:27 -04:00
Keith Winstein fbb768ca1c Include test_utils.h in "SOURCES" so it is distributed 2012-04-24 19:15:30 -04:00
Keith Winstein dece595063 Bump version to 1.1.98 (release candidate) 2012-04-24 19:00:40 -04:00
Keith Winstein 913ee0b34b Conform test to new crypto size limit 2012-04-24 18:53:24 -04:00
Keith Winstein 22e7cf60d3 Keep aligned buffers around, instead of allocing on each packet
Fixes #238 github issue.
Also fixes armel "Bad alignment" problem.
2012-04-24 18:40:01 -04:00
Keith Winstein 3ccfe64bfb Rewrite Cygwin test again 2012-04-24 18:04:01 -04:00
Keith Winstein 6cd21080ef Fix test for Cygwin terminfo location 2012-04-24 16:56:23 -04:00