Backport unified client timer from proxy project.
This commit is contained in:
parent
5ad1a48489
commit
9975b4e4cd
13 changed files with 105 additions and 22 deletions
|
@ -74,6 +74,14 @@ void FailoverStrategy::stop()
|
|||
}
|
||||
|
||||
|
||||
void FailoverStrategy::tick(uint64_t now)
|
||||
{
|
||||
for (Client *client : m_pools) {
|
||||
client->tick(now);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void FailoverStrategy::onClose(Client *client, int failures)
|
||||
{
|
||||
if (failures == -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue