mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-12 04:04:26 +00:00
release 0.7.2 (#66)
* Remove trailing / from metadata provider. * Resolves issue #67 - Before: 100 concurrent requests → 300+ refresh attempts → OOM - After: 100 concurrent requests → 1 refresh attempt → Stable memory Added following changes: - Introduced a refresh coordinator to manage concurrent refresh requests - Implemented a test to simulate high concurrency and verify memory stability * Issue #67 fixed.
This commit is contained in:
@@ -32,6 +32,12 @@ func GetMemoryOptimizations() *MemoryOptimizations {
|
||||
return globalMemoryOpts
|
||||
}
|
||||
|
||||
// ResetGlobalMemoryOptimizations resets the global memory optimizations for testing
|
||||
func ResetGlobalMemoryOptimizations() {
|
||||
globalMemoryOptsOnce = sync.Once{}
|
||||
globalMemoryOpts = nil
|
||||
}
|
||||
|
||||
// BufferPool manages a pool of byte buffers
|
||||
type BufferPool struct {
|
||||
pool sync.Pool
|
||||
|
||||
Reference in New Issue
Block a user