Changeset 1076

Show
Ignore:
Timestamp:
07/26/07 00:31:29 (3 years ago)
Author:
ahu
Message:

make sockets non-blocking if we use 'select', thanks DPS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/nameserver.cc

    r1012 r1076  
    9191    if(s<0) 
    9292      throw AhuException("Unable to acquire a UDP socket: "+string(strerror(errno))); 
     93   
     94    if(locals.size() > 1 && !Utility::setNonBlocking(s)) 
     95      throw AhuException("Unable to set UDP socket to non-blocking: "+stringerror()); 
    9396   
    9497    memset(&locala,0,sizeof(locala));