Keith Winstein
2dcef54e24
Allow new states slowly even when queue full (fixes Axel Beckert lockup)
2013-01-15 02:03:35 -05:00
Anton Lundin
99dc1f93cf
Use MSG_NONBLOCK when MSG_DONTWAIT doesn't exist
2012-12-01 14:49:29 +01: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
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
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
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
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
9ac3b65090
Respond to explicit congestion notification (slow down sender)
2012-09-28 19:07:31 -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
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
Timo Sirainen
7117b61bf4
Don't do a 64bit read access from a string, since it may not be 64bit aligned.
...
Fixes crash with CPUs that require aligned access.
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Timo Sirainen
620152261e
Don't use s_addr as parameter name. Fixes compiling with Solaris.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Keith Winstein
a744004bf6
Get system timestamp less often (only after sleeping/selecting)
2012-07-26 21:13:26 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Alexander Chernyakhovsky
0099f080ad
Fix FTBFS on ARM on GCC 4.7.0
...
GCC v4.7.0, as found in Fedora 17 and newer, fails to build mosh on
ARM because of a narrowing warning, which is then promoted to an error
by -Werror. This error message is new, and did not occur under
previous versions of GCC.
This patch corrects this error by explicitly casting to the desired
datatype the return value of the offending code, the result of a macro
from glibc to implement htobe16().
2012-06-20 01:24:08 -04:00
Keith Winstein
88bed3e94a
Remove warning for IP_TOS failure
2012-06-12 14:39:36 -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
ade0aaa3e8
Make IP_TOS failure non-fatal per Keegan.
2012-05-25 21:00:51 -04:00
Dave Taht
72e6c85e3d
Set diffserv values to AF42 + ECT
...
AF42 has both the properties of CS42 and the IMM bit.
Whether this has the advantages or disadvantages of just one or
the other, I don't know. With most mac80211 stacks this will
force mosh packets in the VI queue on wireless.
As for pfifo_fast, have to look it up...
2012-05-25 20:40:49 -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
7700984bbb
Revert "Use protobuf's Gzip streams"
...
This reverts commit b0e05776f1 .
2012-05-23 01:55:57 -04:00
Keith Winstein
eca34ea0fd
Make mandatory check for bad throwaway from sender
2012-05-22 23:12:48 -04:00
Keith Winstein
e5f8ed7579
Cap state queue used by receiver, even if sender is malicious
2012-05-22 23:01:39 -04:00
Anders Kaseorg
b0e05776f1
Use protobuf's Gzip streams
...
This reverts commit 63459ed1c7 .
2012-05-16 00:24:21 -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
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
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
Massimo Gengarelli
49fc21c8a3
Catch by const reference (remove Eclipse warnings)
...
(closes #245 )
2012-04-29 02:24:31 -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
63459ed1c7
Revert use of protobuf's Gzip streams.
...
Unfortunately some Red Hat-based distributions lack the required header.
See https://bugzilla.redhat.com/show_bug.cgi?id=815587
This reverts commit 261a389a76 .
This reverts commit b6736eb0a5 .
2012-04-23 22:50:49 -04:00
Anders Kaseorg
b6736eb0a5
Use protobuf’s Gzip{Input,Output}Stream wrapper around zlib
...
This removes our direct zlib dependency (although of course protobuf
still uses it internally), removes a fixed 4 MiB buffer and its
corresponding limit on the terminal size, reduces some string copying,
and deletes some code.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
(Closes #230.)
2012-04-22 16:14:28 -04:00
Keith Winstein
8de74afb5f
Restore 50 fps cap on frame rate (relevant to #222 github issue).
2012-04-19 23:00:12 -04:00
Keith Winstein
3c6e45a469
Adjust timing parameters in response to real-world trace data.
...
Also increases maximum frame rate from 50 fps to 100 fps.
Relevant to issue #222 on github.
2012-04-19 22:40:03 -04:00