Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | give component_future its own try_ready! macro | Jesse Luehrs | 2019-10-17 | 11 | -329/+166 | |
| | | | | this simplifies quite a lot of things | |||||
* | clippy | Jesse Luehrs | 2019-10-17 | 1 | -2/+4 | |
| | ||||||
* | ensure resize handling works everywhere | Jesse Luehrs | 2019-10-17 | 6 | -91/+160 | |
| | | | | | previously record wasn't getting resize events because they were being handled in the client (which record doesn't use) | |||||
* | improve the interface of component_future a bit | Jesse Luehrs | 2019-10-17 | 9 | -260/+286 | |
| | | | | make it feel more like the standard futures::Poll/futures::Async | |||||
* | refactor config handling | Jesse Luehrs | 2019-10-17 | 9 | -326/+688 | |
| | ||||||
* | improve logging a bit | Jesse Luehrs | 2019-10-17 | 3 | -28/+25 | |
| | ||||||
* | hide all logs except error logs for interactive subcommands | Jesse Luehrs | 2019-10-17 | 3 | -7/+16 | |
| | | | | | this should let us use the logger more idiomatically without interfering with normal command output | |||||
* | pull some more hardcoded values into constants | Jesse Luehrs | 2019-10-17 | 2 | -7/+10 | |
| | ||||||
* | also factor out client auth id saving | Jesse Luehrs | 2019-10-17 | 2 | -9/+16 | |
| | ||||||
* | allow restricting the accepted auth type list | Jesse Luehrs | 2019-10-17 | 5 | -8/+94 | |
| | ||||||
* | no need to reconnect the list client when the watch client disconnects | Jesse Luehrs | 2019-10-17 | 1 | -1/+1 | |
| | ||||||
* | add tests for protocol type handling | Jesse Luehrs | 2019-10-17 | 1 | -2/+44 | |
| | ||||||
* | also use an enum for message type instead of consts | Jesse Luehrs | 2019-10-17 | 1 | -108/+84 | |
| | ||||||
* | the server stored tokens should also be data, not cache | Jesse Luehrs | 2019-10-17 | 3 | -15/+6 | |
| | ||||||
* | factor out caching of the client oauth id | Jesse Luehrs | 2019-10-17 | 3 | -22/+25 | |
| | ||||||
* | use a real enum for auth types | Jesse Luehrs | 2019-10-17 | 4 | -26/+76 | |
| | ||||||
* | fix session list tests | Jesse Luehrs | 2019-10-17 | 1 | -0/+1 | |
| | ||||||
* | display number of watchers per stream in the watch ui | Jesse Luehrs | 2019-10-16 | 3 | -7/+51 | |
| | ||||||
* | optimize the protocol a bit more | Jesse Luehrs | 2019-10-16 | 2 | -39/+55 | |
| | ||||||
* | handle resets and clears separately | Jesse Luehrs | 2019-10-16 | 1 | -23/+44 | |
| | ||||||
* | use different logic for buffering on the client side vs server | Jesse Luehrs | 2019-10-16 | 4 | -68/+154 | |
| | | | | | they have different needs and performance profiles, so try to be a bit more intelligent | |||||
* | ensure that all bytes coming from the terminal actually get written | Jesse Luehrs | 2019-10-16 | 4 | -94/+135 | |
| | | | | | | | | | it's not actually safe to just skip over bytes when we see a reset escape sequence, because there might be other escape sequences changing the terminal state that don't get cleared by a reset. for instance, starting vim sends "switch to alternate screen" followed by "reset", and if those two come in the same packet, we were previously dropping the "switch to alternate screen" escape sequence, causing incorrect display. | |||||
* | simplify | Jesse Luehrs | 2019-10-16 | 3 | -14/+13 | |
| | ||||||
* | simplify | Jesse Luehrs | 2019-10-16 | 2 | -22/+21 | |
| | ||||||
* | remove some unnecessary moves | Jesse Luehrs | 2019-10-16 | 1 | -2/+2 | |
| | ||||||
* | cache refresh tokens and use them when the exist | Jesse Luehrs | 2019-10-16 | 12 | -53/+331 | |
| | | | | to avoid needing to go through the browser auth flow every time | |||||
* | further generalize the oauth flow | Jesse Luehrs | 2019-10-16 | 2 | -35/+69 | |
| | ||||||
* | better error handling in client oauth login flow | Jesse Luehrs | 2019-10-16 | 2 | -17/+35 | |
| | ||||||
* | move address default out of the util function | Jesse Luehrs | 2019-10-16 | 3 | -6/+5 | |
| | ||||||
* | add a bit more debug logging to the client | Jesse Luehrs | 2019-10-16 | 1 | -5/+22 | |
| | ||||||
* | don't block the main thread when waiting for oauth response | Jesse Luehrs | 2019-10-16 | 2 | -72/+142 | |
| | ||||||
* | rename some enum variants | Jesse Luehrs | 2019-10-16 | 1 | -7/+7 | |
| | | | | more consistency with the server side | |||||
* | comment | Jesse Luehrs | 2019-10-16 | 1 | -1/+1 | |
| | ||||||
* | pull address out into a const | Jesse Luehrs | 2019-10-16 | 1 | -3/+10 | |
| | ||||||
* | relax the http request parsing a bit | Jesse Luehrs | 2019-10-16 | 1 | -1/+1 | |
| | ||||||
* | start implementing oauth authentication | Jesse Luehrs | 2019-10-15 | 11 | -55/+1308 | |
| | ||||||
* | don't send terminal output messages unless we're connected | Jesse Luehrs | 2019-10-15 | 1 | -1/+5 | |
| | | | | | the server won't be expecting terminal output messages during the process of a login flow, for instance | |||||
* | need to reset rsock after closing the connection too | Jesse Luehrs | 2019-10-15 | 1 | -0/+1 | |
| | | | | | since the future that produced it completed at this point, so we don't want to poll it again (which could happen since closing is deferred) | |||||
* | reset reconnect timer after logging in | Jesse Luehrs | 2019-10-15 | 1 | -2/+1 | |
| | | | | | resetting after connect means that we could still potentially crashloop during a multi-phase login | |||||
* | add an intermediate LoggingIn state | Jesse Luehrs | 2019-10-15 | 1 | -3/+34 | |
| | | | | for login methods that require additional messages back and forth | |||||
* | add a processing state to server connections | Jesse Luehrs | 2019-10-15 | 1 | -8/+50 | |
| | | | | this allows us to do long-lived actions in response to messages | |||||
* | send initial terminal size on process start | Jesse Luehrs | 2019-10-15 | 4 | -18/+34 | |
| | | | | | | sending it on connect meant that the terminal size wouldn't be set at all if there was a problem connecting to the server, which confuses programs running in the pty | |||||
* | add client message logging too | Jesse Luehrs | 2019-10-15 | 1 | -0/+3 | |
| | ||||||
* | wait to send on_connect messages until after login | Jesse Luehrs | 2019-10-15 | 1 | -6/+6 | |
| | ||||||
* | allow clippy::single_match everywhere | Jesse Luehrs | 2019-10-15 | 2 | -2/+1 | |
| | ||||||
* | various client cleanups | Jesse Luehrs | 2019-10-15 | 1 | -91/+99 | |
| | ||||||
* | delay moving to the connected state until we get an ack from the server | Jesse Luehrs | 2019-10-15 | 3 | -3/+35 | |
| | | | | | this should make adding additional handshake steps during login more straightforward | |||||
* | store term type and size data on the client | Jesse Luehrs | 2019-10-15 | 1 | -9/+15 | |
| | ||||||
* | more simplification | Jesse Luehrs | 2019-10-14 | 1 | -8/+11 | |
| | ||||||
* | a few more tweaks | Jesse Luehrs | 2019-10-14 | 5 | -53/+56 | |
| |