Skip to content

support failover in the memory mode for the proxy#4648

Closed
liukun4515 wants to merge 3 commits intoossrs:developfrom
liukun4515:pr-1
Closed

support failover in the memory mode for the proxy#4648
liukun4515 wants to merge 3 commits intoossrs:developfrom
liukun4515:pr-1

Conversation

@liukun4515
Copy link
Copy Markdown

No description provided.

When origin server's UpdatedAt exceeds ServerAliveDuration (300s),
Pick() now automatically selects a healthy server instead of
returning the expired one. Added double-checked locking to ensure
thread safety during concurrent server selection.

Added unit tests to verify server expiration handling and
concurrent access safety.
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Mar 17, 2026
@liukun4515 liukun4515 closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EnglishNative This issue is conveyed exclusively in English.

Development

Successfully merging this pull request may close these issues.

2 participants