Changeset 3034 for box/trunk


Ignore:
Timestamp:
31/10/2011 21:09:45 (7 months ago)
Author:
chris
Message:

Improve error message on bbackupd command socket bind failure, thanks to Christophe.

Location:
box/trunk/lib/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/ServerException.txt

    r217 r3034  
    1414SocketCloseError                                13 
    1515SocketNameUNIXPathTooLong               14 
    16 SocketBindError                                 16      Check the ListenAddresses directive in your config file -- must refer to local IP addresses only 
     16SocketBindError                                 16      Check the ListenAddresses directive (bbstored) or CommandSocket (bbackupd) in your config file -- must refer to local IP addresses (or existing writable path) only 
    1717SocketAcceptError                               17 
    1818ServerStreamBadListenAddrs              18 
  • box/trunk/lib/server/SocketListen.h

    r2711 r3034  
    167167                        || ::listen(mSocketHandle, ListenBacklog) == -1) 
    168168                { 
     169                        int err_number = errno; 
    169170                        // Dispose of the socket 
    170171                        ::close(mSocketHandle); 
    171172                        mSocketHandle = -1; 
    172                         THROW_EXCEPTION(ServerException, SocketBindError) 
     173                        THROW_SYS_FILE_ERRNO("Failed to bind or listen " 
     174                                "on socket", Name, err_number, 
     175                                ServerException, SocketBindError); 
    173176                }        
    174177        } 
Note: See TracChangeset for help on using the changeset viewer.