Changeset 1382

Show
Ignore:
Timestamp:
07/30/09 22:31:36 (4 years ago)
Author:
ahu
Message:

cherry pick 1280 for 3.1.17.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/pdns-3.1.7.1/pdns/unix_utility.cc

    r877 r1382  
    4242{ 
    4343  int ret=::close(socket); 
    44   if(ret < 0) 
     44  if(ret < 0 && errno == ECONNRESET) // see ticket 192, odd BSD behaviour 
     45    return 0; 
     46  if(ret < 0)  
    4547    throw AhuException("Error closing socket: "+stringerror()); 
    4648  return ret;