Changeset 2451


Ignore:
Timestamp:
15/03/2009 20:20:37 (3 years 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.

File:
1 edited

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; 
Note: See TracChangeset for help on using the changeset viewer.