fix core when host is down for > 1000 secs

while spidering
This commit is contained in:
Matt 2015-01-31 09:22:24 -07:00
parent 3a003908ea
commit 0d0951284d
2 changed files with 5 additions and 2 deletions

View File

@ -616,7 +616,10 @@ bool getLinkInfo ( SafeBuf *reqBuf ,
req , // state data
NULL , // state data
gotMulticastReplyWrapper25 ,
1000 , // timeout in seconds (was 30)
// if this is too low we core in XmlDoc.cpp
// after getNewSpiderReply() returns a -1 because
// it blocks for some reason.
9999998 , // timeout in seconds (was 30)
req->m_niceness ,
false, // realtime ,
hostId )) {// firstHostId ,

View File

@ -9139,7 +9139,7 @@ char *XmlDoc::isDupOfUs ( int64_t d ) {
m_niceness ,
false , // add to cache
60*60*24 , // maxcacheage
60 );// timeout
999999 );// timeout
// we blocked
if ( ! s ) return (char *)-1;
// error?