version 1.109, 2007/12/18 18:50:45
|
version 1.113, 2008/01/25 21:18:21
|
|
|
if (_rep) | if (_rep) |
{ | { |
AutoMutex autoMut(_rep->_connection_mut); | AutoMutex autoMut(_rep->_connection_mut); |
if (_rep->connections.size() > 0) |
for (Uint32 i = 0, n = _rep->connections.size(); i < n; i++) |
|
{ |
|
HTTPConnection* connection = _rep->connections[i]; |
|
if (connection->isResponsePending()) |
{ | { |
HTTPConnection* connection = _rep->connections[0]; |
count++; |
count = connection->getRequestCount(); |
} |
} | } |
} | } |
return count; | return count; |
|
|
"HTTPAcceptor: accept() failed"); | "HTTPAcceptor: accept() failed"); |
return; | return; |
} | } |
|
// We need to ensure that the socket number is not higher than |
|
// what fits into FD_SETSIZE, because we else won't be able to select on it |
|
// and won't ever communicate correct on that socket. |
|
if (socket >= FD_SETSIZE) |
|
{ |
|
// the remote connection is invalid, destroy client address. |
|
delete accept_address; |
|
|
|
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::TRACE, |
|
"HTTPAcceptor out of available sockets. " |
|
"Closing connection to the new client."); |
|
|
|
PEG_TRACE( |
|
(TRC_DISCARDED_DATA, |
|
Tracer::LEVEL2, |
|
"accept() returned too large socket number %d.", |
|
socket)); |
|
|
|
// close the connection |
|
Socket::close(socket); |
|
return; |
|
} |
|
|
| |
String ipAddress; | String ipAddress; |
| |