forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Do not log EOF errors, avoid polluting logs * Trim space from tokens when reading from file * Do not use dir based caching The caching problem deserves a separate explanation. Directory backend is not concurrent friendly - it has a fundamental design flaw - multiple gorotuines writing to the same file corrupt cache data. This requires either redesign of the backend or switching to boltdb backend for caching. Boltdb backend uses transactions and is safe for concurrent access. This PR changes local cache to use boltdb instead of the dir backend that is now used only in tests.
- Loading branch information
1 parent
e737ba4
commit f0da64f
Showing
4 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
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
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