Skip to content

Conversation

level2player
Copy link

upgrade go version

cbusbey and others added 30 commits January 8, 2018 10:09
Fix a data race condition in the memoryStore
added new exported unregister session call
importPathRoot function can now support linux and windows file path syntax
EventTimer.Reset implemented using a channel would deadlock if
thread A calls Reset more than once while the EventTimer is invoking
its action and the action blocks on thread A (i.e. sending to an
unbuffered channel that thread A must receive from)
Change EventTimer to reset its Timer without requiring a reset channel
…lidMessages-Configuration

Adds support for RejectInvalidMessage configuration.
Leeeft and others added 30 commits September 3, 2024 14:19
Replaced direct usage of MessageStore with MessageStoreFactory to create backup stores dynamically. This change ensures that each session has its own instance of the backup store, facilitating better resource management and isolation.

- Changed WithBackupStore to accept MessageStoreFactory instead of MessageStore.
- Adjusted fileStoreFactory and newFileStore parameters and implementation accordingly.
Renamed the `storeBackup` struct and related methods to `backupStore` for better clarity and consistency. Added logging statements to handle dropped operations gracefully when encountering high traffic. Updated go.mod to include the logging library.
Ensure `newBackupStore` does not initialize when `MessageStore` is nil. Removed redundant `start()` calls and simplified checks for `nil` in backup store methods. This aims to enhance stability by preventing operations on invalid stores and streamlining function logic.
Removed the redundant `operationRefresh` constant and its corresponding case in the `backupStore` to improve code maintainability. The `operationRefresh` was not being utilized, making its presence unnecessary.
This commit renames `persisteMessage` to `persistentMessage` and `backup` to `backupStore` to improve code readability. It also introduces a new factory, `backupStoreFactory`, to streamline the creation of `backupStore` instances and integrates this factory into the `fileStore` structure. These changes enhance code maintainability and ensure better naming consistency across the codebase.
…l use

This change modifies the backup_store.go file by making certain constants and struct types public. The constants and struct fields have been renamed with capitalized first letters to ensure they are exported and accessible from other packages. This improves code reusability and maintainability across different parts of the application.
Renamed the PersistentMessage struct to BackupMessage for better clarity and consistency with the naming of the backupStore context. This change affects type declarations, variable names, and function parameters that previously referenced PersistentMessage. No functional behavior has been modified.
Added backup store support to `FileStore` by introducing a `backupStoreFactory` in the test setup. Updated various dependencies in `go.mod` and `go.sum` files to ensure compatibility and enhance functionality.
Added a check to ensure the method does not proceed if the receiver is nil, preventing potential runtime panics.
Replaced the custom logging package "git.5th.im/lb-public/gear/log" with the standard library's "fmt" for a more straightforward logging approach. Updated all related log function calls to use fmt.Printf and fmt.Println accordingly. Additionally, removed the dependency from go.mod and cleaned up go.sum.
pick Preserve original body when resending
- Return error if client key cert file pair incomplete
- Add simple test for TLS load with only CA
cherry-pick upstream modification to support unilateral tls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.