a tweak that seems to work

Get help, report and discuss bugs.
Post Reply
exzisus

a tweak that seems to work

Post by exzisus » 13 Feb 2007, 19:43

I made the following addition in ArticleDownloader.cpp regarding the retries in retrieving an article:

Original code:
for (int retry = 3; retry > 0; retry--)
{
answer = pConnection->Request(tmp);
if (answer && (!strncmp(answer, "2", 1)))
{
break;
}

}

My code:
for (int retry = 60; retry > 0; retry--)
{
answer = pConnection->Request(tmp);
if (answer && (!strncmp(answer, "2", 1)))
{
break;
}
else sleep(1);

}

That is 60 retries with 1 sec delay.

Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests