mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-17 02:56:07 -04:00
Fix (unlikely) error in Msg13 for spidering if all hosts aer down
This commit is contained in:
@ -226,6 +226,13 @@ bool Msg13::forwardRequest ( ) {
|
||||
if ( ++hostId >= nh ) hostId = 0;
|
||||
}
|
||||
|
||||
if(!h) {
|
||||
//all spider hosts dead (or misconfiguration)
|
||||
if(!g_errno)
|
||||
g_errno = ENOHOSTS;
|
||||
log("spider: msg13 request: %s",mstrerror(g_errno));
|
||||
return true;
|
||||
}
|
||||
|
||||
hostId = 0; // HACK!!
|
||||
|
||||
|
Reference in New Issue
Block a user