Skip to content
Snippets Groups Projects
Commit 1e1152b7 authored by Jan David Mol's avatar Jan David Mol
Browse files

bug 1362: fixed ApplController -> RTCP control

parent e8dd3f55
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,8 @@ ApplController::ApplController(const string& configID) :
itsIsRunning (false),
itsStateEngine (new StateEngine),
itsCurState (StateNone),
itsCurACMsg (0)
itsCurACMsg (0),
itsNrOfProcs (0)
{
LOG_TRACE_OBJ ("ApplController constructor");
......@@ -398,8 +399,8 @@ void ApplController::createParSubsets()
fileName,
nrProcs));
writeParSubset(basePS, procName, fileName);
// CN processes do not connect to the ApplController.
itsNrOfProcs -= nrProcs ? nrProcs : 1;
// CN processes do now connect to the ApplController.
//itsNrOfProcs -= nrProcs ? nrProcs : 1;
}
} // for processes
}
......
......@@ -174,7 +174,7 @@ template<> void FakeBlob::read<string>( Stream &s, string &str ) const {
read( s, length );
cstr = new char[length];
cstr = new char[length+1];
// make sure cstr won't leak if s.read throws
struct D {
......@@ -184,6 +184,7 @@ template<> void FakeBlob::read<string>( Stream &s, string &str ) const {
(void)onDestruct;
s.read( cstr, length );
cstr[length] = 0;
str = cstr;
}
......@@ -266,7 +267,7 @@ PLCClient::PLCClient( Stream &s, PLCRunnable &job, const std::string &procID, un
itsStartTime( time(0L) ),
itsDefineCalled( false ),
itsDone( false ),
itsLogPrefix( str(format("[PLC] [obs %u] ") % observationID) ),
itsLogPrefix( str(format("[obs %u] [PLC] ") % observationID) ),
itsThread( 0 )
{
itsThread = new InterruptibleThread( this, &PLCClient::mainLoop, "[PLC] ", 65535 );
......@@ -381,7 +382,14 @@ void PLCClient::mainLoop() {
bool resultExpected = true;
bool supported = true;
recvCmd( cmd, options );
try {
recvCmd( cmd, options );
} catch (SystemCallException &ex) {
if (itsDone)
LOG_INFO_STR( itsLogPrefix << "Lost connection to ApplController, but am quitting.");
else
throw;
}
switch (cmd) {
case PCCmdInfo:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment