version 1.53, 2005/01/13 15:08:51
|
version 1.54, 2005/01/14 17:58:27
|
|
|
throw BindFailedException(parms); | throw BindFailedException(parms); |
} | } |
| |
|
// |
|
// Change permissions on Linux local domain socket to allow writes by others. |
|
// |
|
#if defined(PEGASUS_LOCAL_DOMAIN_SOCKET) && defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
if (_localConnection) |
|
{ |
|
if (::chmod( PEGASUS_LOCAL_DOMAIN_SOCKET_PATH, |
|
S_IRUSR | S_IWUSR | S_IXUSR | |
|
S_IRGRP | S_IWGRP | S_IXGRP | |
|
S_IROTH | S_IWOTH | S_IXOTH ) < 0 ) |
|
{ |
|
Socket::close(_rep->socket); |
|
delete _rep; |
|
_rep = 0; |
|
//l10n |
|
//throw BindFailedException("Failed to bind socket"); |
|
MessageLoaderParms parms("Common.HTTPAcceptor.FAILED_BIND_SOCKET", |
|
"Failed to bind socket"); |
|
PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL2, |
|
"HTTPAcceptor::_bind: Failed to set domain socket permissions."); |
|
throw BindFailedException(parms); |
|
} |
|
} |
|
#endif |
|
|
// Set up listening on the given socket: | // Set up listening on the given socket: |
| |
//int const MAX_CONNECTION_QUEUE_LENGTH = 15; | //int const MAX_CONNECTION_QUEUE_LENGTH = 15; |