Fix retransmissions: not only for entities
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Wed, 9 Mar 2016 12:22:20 +0000 (13:22 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Wed, 9 Mar 2016 12:22:20 +0000 (13:22 +0100)
example/diameter/launcher/Launcher.cpp

index 2e5b52b..88e4c44 100644 (file)
@@ -345,6 +345,7 @@ void Launcher::servicesFromXML(const anna::xml::Node* servicesNode, bool eventOp
       // Assignments:
       commEngine->setMaxConnectionDelay(tcpConnectDelayMs);
       commEngine->setWatchdogPeriod(watchdogPeriodMs);
+      a_workingNode->setRequestRetransmissions(retransmissions);
 
       // Realm information:
       commEngine->setOriginHost(originHost->getValue());
@@ -365,7 +366,6 @@ void Launcher::servicesFromXML(const anna::xml::Node* servicesNode, bool eventOp
 
           // Register one entity for this engine:
           a_workingNode->createEntity(entity->getValue(), ceaTimeoutMs, answersTimeoutMs);
-          a_workingNode->setRequestRetransmissions(retransmissions);
           a_workingNode->getEntity()->setSessionBasedModelsType(sessionBasedModelsType);
           a_workingNode->getEntity()->setBalance(balance ? (balance->getValue() == "yes") : false); // for sendings
           if (eventOperation) a_workingNode->getEntity()->bind();