Changeset 2451

Show
Ignore:
Timestamp:
15/03/2009 20:20:37 (18 months ago)
Author:
chris
Message:

Fix crash when freebsd (maybe *bsd) returns ECONNRESET on close(), which
presumably means that the socket is already closed, causing bbackupd test
to fail. Thanks to Victor Meirans for reporting the problem. See
 http://wiki.powerdns.com/cgi-bin/trac.fcgi/changeset/1280 and
 http://wiki.powerdns.com/cgi-bin/trac.fcgi/ticket/192 for example.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/SocketStream.cpp

    r2425 r2451  
    369369        { 
    370370                BOX_LOG_SYS_ERROR("Failed to close socket"); 
    371                 THROW_EXCEPTION(ServerException, SocketCloseError) 
     371                // don't throw an exception here, assume that the socket was 
     372                // already closed or closing. 
    372373        } 
    373374        mSocketHandle = INVALID_SOCKET_VALUE;