Skip to content

Commit bbdb8ab

Browse files
committed
config CHANGE timeout step is configurable
Fixes #164
1 parent e9c23ef commit bbdb8ab

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ option(ENABLE_PYTHON "Include bindings for Python 3" OFF)
4646
set(READ_INACTIVE_TIMEOUT 20 CACHE STRING "Maximum number of seconds waiting for new data once some data have arrived")
4747
set(READ_ACTIVE_TIMEOUT 300 CACHE STRING "Maximum number of seconds for receiving a full message")
4848
set(MAX_PSPOLL_THREAD_COUNT 6 CACHE STRING "Maximum number of threads that could simultaneously access a ps_poll structure")
49+
set(TIMEOUT_STEP 100 CACHE STRING "Number of microseconds tasks are repeated until timeout elapses")
4950
set(SCHEMAS_DIR "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}" CACHE STRING "Directory with internal lnc2 schemas")
5051

5152
if(ENABLE_DNSSEC AND NOT ENABLE_SSH)

src/config.h.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
*/
7474
#define NC_PS_QUEUE_SIZE @MAX_PSPOLL_THREAD_COUNT@
7575

76+
/* Microseconds after which tasks are repeated until the full timeout elapses.
77+
* A millisecond (1000) should be divisible by this number without remain.
78+
*/
79+
#define NC_TIMEOUT_STEP @TIMEOUT_STEP@
80+
7681
/* Portability feature-check macros. */
7782
#cmakedefine HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP
7883

src/netconf.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ extern "C" {
4141
/** @brief Default NETCONF over TLS Call Home port */
4242
#define NC_PORT_CH_TLS 4335
4343

44-
/** @brief Microseconds after which tasks are repeated until the full timeout elapses.
45-
* A millisecond (1000) should be divisible by this number without remain.
46-
*/
47-
#define NC_TIMEOUT_STEP 50
48-
4944
/**
5045
* @brief Set RPC callback to a schema node.
5146
*

0 commit comments

Comments
 (0)