Implemented reconnect.
This commit is contained in:
parent
b8cc1136a4
commit
c29dc8bcf4
7 changed files with 40 additions and 7 deletions
|
@ -65,6 +65,12 @@ void Network::connect()
|
|||
}
|
||||
|
||||
|
||||
void Network::onClose(Client *client, int failures)
|
||||
{
|
||||
LOG_DEBUG("CLOSE %d %d", client->id(), failures);
|
||||
}
|
||||
|
||||
|
||||
void Network::onJobReceived(Client *client, const Job &job)
|
||||
{
|
||||
|
||||
|
@ -90,6 +96,7 @@ void Network::addPool(const Url *url)
|
|||
|
||||
Client *client = new Client(m_pools.size(), this);
|
||||
client->setUrl(url);
|
||||
client->setRetryPause(m_options->retryPause() * 1000);
|
||||
|
||||
m_pools.push_back(client);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue