Adjust protocol timeouts
This commit is contained in:
parent
a9e960a4dd
commit
e27d6c5b3d
2 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@ class CNode {
|
|||
|
||||
int GetTimeout() {
|
||||
if (you.IsTor())
|
||||
return 60;
|
||||
return 120;
|
||||
else
|
||||
return 10;
|
||||
return 30;
|
||||
}
|
||||
|
||||
void BeginMessage(const char *pszCommand) {
|
||||
|
|
2
main.cpp
2
main.cpp
|
@ -159,7 +159,7 @@ extern "C" void* ThreadCrawler(void* data) {
|
|||
res.nClientV = 0;
|
||||
res.nHeight = 0;
|
||||
res.strClientV = "";
|
||||
bool getaddr = res.ourLastSuccess + 604800 < now;
|
||||
bool getaddr = res.ourLastSuccess + 86400 < now;
|
||||
res.fGood = TestNode(res.service,res.nBanTime,res.nClientV,res.strClientV,res.nHeight,getaddr ? &addr : NULL);
|
||||
}
|
||||
db.ResultMany(ips);
|
||||
|
|
Loading…
Reference in a new issue