Changeset 1091

Show
Ignore:
Timestamp:
09/13/07 21:30:30 (1 year ago)
Author:
ahu
Message:

variant of bugfix authored by Alex Kiernan which fixes Solaris problems wher the recursor stops answering
questions after a certain amount of time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pdns/pdns/portsmplexer.cc

    r737 r1091  
    9292  gettimeofday(now,0); 
    9393   
    94   if(ret < 0 && errno!=EINTR && errno!=ETIME) 
    95     throw FDMultiplexerException("completion port_getn returned error: "+stringerror()); 
     94  if(ret < 0) { 
     95    if(errno!=EINTR && errno!=ETIME) 
     96      throw FDMultiplexerException("completion port_getn returned error: "+stringerror()); 
     97    // EINTR and ETIME are not really errors 
     98    return 0; 
     99  } 
    96100 
    97   if((ret < 0 && errno==ETIME) || numevents==0) // nothing 
     101  if(!numevents) // nothing 
    98102    return 0; 
    99103