-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v14] Fix the RDP licensing flow (#47544)
* Fix the RDP licensing flow on v14 Licenses are stored in-memory, so if the agent restarts it will be forced to go through the "new license" flow for the first session. * Store RDP licenses in a LRU cache instead of a HashMap This ensures memory doesn't grow unbounded if we end up caching a large number of licenses.
- Loading branch information
Showing
7 changed files
with
159 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[package] | ||
name = "rdp-client" | ||
version = "0.1.0" | ||
authors = ["Andrew Lytvynov <[email protected]>", "Zac Bergquist <[email protected]>"] | ||
authors = [ | ||
"Andrew Lytvynov <[email protected]>", | ||
"Zac Bergquist <[email protected]>", | ||
] | ||
edition = "2018" | ||
|
||
[lib] | ||
|
@@ -20,10 +23,11 @@ num-traits = "0.2.16" | |
rand = { version = "0.8.5", features = ["getrandom"] } | ||
rand_chacha = "0.3.1" | ||
rsa = "0.9.2" | ||
rdp-rs = { git = "https://github.com/gravitational/rdp-rs", rev = "edfb5330a11d11eaf36d65e4300555368b4c6b02" } | ||
rdp-rs = { git = "https://github.com/gravitational/rdp-rs", rev = "2b0d99cc60c7b6474a1e2224a0bd6b2beca56b63" } | ||
uuid = { version = "1.4.1", features = ["v4"] } | ||
utf16string = "0.2.0" | ||
png = "0.17.10" | ||
lru = "0.12.5" | ||
|
||
[build-dependencies] | ||
cbindgen = "0.25.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.