Skip to content
Snippets Groups Projects
Commit 033c3777 authored by Steven Murray's avatar Steven Murray
Browse files

The socket file-descriptor of the VDQM connection is now logged. We're trying

to find a slow file-descriptor leak.
parent 5726b601
Branches
Tags
No related merge requests found
/* This file was generated by ./AggregatorDlfMessagesCodeGenerator on Mon Jan 11 10:22:02 CET 2010
/* This file was generated by ./AggregatorDlfMessagesCodeGenerator on Thu Jan 14 15:49:34 CET 2010
*/
/******************************************************************************
......@@ -37,7 +37,7 @@ AGGREGATOR_NULL=0, /* " - " */
AGGREGATOR_STARTED=1, /* "aggregatord started" */
AGGREGATOR_FAILED_TO_PARSE_COMMAND_LINE=2, /* "Failed to parse the command line" */
AGGREGATOR_FAILED_TO_INIT_DB_SERVICE=3, /* "Failed to initialise database service" */
AGGREGATOR_VDQM_CONNECTION_WITH_INFO=4, /* "Received a connection from VDQM" */
AGGREGATOR_RECEIVED_VDQM_CONNECTION=4, /* "Received a connection from VDQM" */
AGGREGATOR_HANDLE_VDQM_REQUEST_EXCEPT=5, /* "Exception raised when handling a request from the VDQM" */
AGGREGATOR_FAILED_TO_READ_MESSAGE_HEADER=6, /* "Failed to read message header" */
AGGREGATOR_UNKNOWN_MAGIC=7, /* "Unknown magic number" */
......
/* This file was generated by ./AggregatorDlfMessagesCodeGenerator on Mon Jan 11 10:22:02 CET 2010
/* This file was generated by ./AggregatorDlfMessagesCodeGenerator on Thu Jan 14 15:49:34 CET 2010
*/
/******************************************************************************
......@@ -33,7 +33,7 @@ castor::dlf::Message castor::tape::aggregator::AggregatorDaemon::s_dlfMessages[]
{AGGREGATOR_STARTED, "aggregatord started"},
{AGGREGATOR_FAILED_TO_PARSE_COMMAND_LINE, "Failed to parse the command line"},
{AGGREGATOR_FAILED_TO_INIT_DB_SERVICE, "Failed to initialise database service"},
{AGGREGATOR_VDQM_CONNECTION_WITH_INFO, "Received a connection from VDQM"},
{AGGREGATOR_RECEIVED_VDQM_CONNECTION, "Received a connection from VDQM"},
{AGGREGATOR_HANDLE_VDQM_REQUEST_EXCEPT, "Exception raised when handling a request from the VDQM"},
{AGGREGATOR_FAILED_TO_READ_MESSAGE_HEADER, "Failed to read message header"},
{AGGREGATOR_UNKNOWN_MAGIC, "Unknown magic number"},
......
......@@ -2,7 +2,7 @@
1,AGGREGATOR_STARTED,"aggregatord started"
2,AGGREGATOR_FAILED_TO_PARSE_COMMAND_LINE,"Failed to parse the command line"
3,AGGREGATOR_FAILED_TO_INIT_DB_SERVICE,"Failed to initialise database service"
4,AGGREGATOR_VDQM_CONNECTION_WITH_INFO,"Received a connection from VDQM"
4,AGGREGATOR_RECEIVED_VDQM_CONNECTION,"Received a connection from VDQM"
5,AGGREGATOR_HANDLE_VDQM_REQUEST_EXCEPT,"Exception raised when handling a request from the VDQM"
6,AGGREGATOR_FAILED_TO_READ_MESSAGE_HEADER,"Failed to read message header"
7,AGGREGATOR_UNKNOWN_MAGIC,"Unknown magic number"
......
......@@ -125,10 +125,11 @@ void castor::tape::aggregator::VdqmRequestHandler::run(void *param)
castor::dlf::Param params[] = {
castor::dlf::Param("IP" , castor::dlf::IPAddress(ip)),
castor::dlf::Param("Port" , port),
castor::dlf::Param("HostName", hostName)};
castor::dlf::Param("Port" , port ),
castor::dlf::Param("HostName", hostName ),
castor::dlf::Param("socketFd", vdqmSock->socket() )};
castor::dlf::dlf_writep(cuuid, DLF_LVL_SYSTEM,
AGGREGATOR_VDQM_CONNECTION_WITH_INFO, params);
AGGREGATOR_RECEIVED_VDQM_CONNECTION, params);
} catch(castor::exception::Exception &ex) {
castor::exception::Exception ex2(ex.code());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment