-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: skip proxy health check if connection is not active
1. Add last_active field for Connection. When Connection.call() is called, last_active is updated to current time. 2. Add max_elapsed_time field for ProxyConfig. Connection is considered to be inactive if the current time to the last_active time exceeds max_elapsed_time. 3. In proxy's health checking thread's loop, if the connection is not active (exceeds max_elapsed_time), this round of health check is skipped. Signed-off-by: BruceAko <chongzhi@hust.edu.cn>
- Loading branch information
Showing
2 changed files
with
54 additions
and
30 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