// Set the option to reuse the port
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-FACTORY: Enabling re-use address ...');
- if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('tcp_socket_enable_reuse_address') == 'Y' && !$socketInstance->enableSocketReuseAddress()) {
+ if (FrameworkBootstrap::getConfigurationInstance()->isEnabled('tcp_socket_enable_reuse_address') && !$socketInstance->enableSocketReuseAddress()) {
// Handle this socket error
$socketInstance->handleSocketError(__METHOD__, __LINE__);
}
*/
protected function fillInBufferQueueWithTestUnits () {
// Are test units enabled?
- if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('miner_test_units_enabled') == 'N') {
+ if (!FrameworkBootstrap::getConfigurationInstance()->isEnabled('miner_test_units')) {
// They are disabled, so skip any further steps
return;
} elseif ($this->getStateInstance()->isMinerStateVirgin()) {
$this->fillInBufferQueueWithWorkUnits();
// Is the buffer still not filled and are test-packages allowed?
- if ((!$this->isInBufferQueueFilled()) && (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('miner_test_units_enabled') == 'Y')) {
+ if (!$this->isInBufferQueueFilled() && FrameworkBootstrap::getConfigurationInstance()->isEnabled('miner_test_units')) {
// Then fill the in-buffer with (one) test-unit(s)
$this->fillInBufferQueueWithTestUnits();
}
// CFG: TCP-SOCKET-ACCEPT-WAIT-USEC
$cfg->setConfigEntry('tcp_socket_accept_wait_usec', 0);
-// CFG: TCP-SOCKET-ENABLE-REUSE-ADDRESS
-$cfg->setConfigEntry('tcp_socket_enable_reuse_address', 'Y');
+// CFG: IS-TCP-SOCKET-ENABLE-REUSE-ADDRESS-ENABLED
+$cfg->setConfigEntry('is_tcp_socket_enable_reuse_address_enabled', true);
// CFG: FILE-SOCKET-LISTEN-BACKLOG
$cfg->setConfigEntry('file_socket_listen_backlog', 0);
// CFG: STACKER-OUTGOING-QUEUE-MAX-SIZE
$cfg->setConfigEntry('stacker_outgoing_queue_max_size', 1000);
+// CFG: IS-MINER-TEST-UNITS-ENABLED
+$cfg->setConfigEntry('is_miner_test_units_enabled', true);
+
///////////////////////////////////////////////////////////////////////////////
// Cruncher configuration
///////////////////////////////////////////////////////////////////////////////
-Subproject commit 14567fcd5820f2fcc3c78e816e782f34b8d49e6d
+Subproject commit ad17ce1c5fe13f2290e74bec676f23e65c2e9100