From 149fcd829c8d8df08cdb3608ddd48048c5cb4533 Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 23 May 2012 13:28:25 +0000 Subject: [PATCH] Shortened datalink timeout from 100ms to 1ms so that COV handler task, which has by default 255 subscriptions and 5 states (almost 2 minutes to process all subscriptions at 100ms per task cycle), would get through the states quickly. Doesn't appear to negatively impact any performance (as tested on Win32 XP and Linux). --- bacnet-stack/demo/server/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/demo/server/main.c b/bacnet-stack/demo/server/main.c index 2f0cdb66..c646a802 100644 --- a/bacnet-stack/demo/server/main.c +++ b/bacnet-stack/demo/server/main.c @@ -151,7 +151,7 @@ int main( 0 }; /* address where message came from */ uint16_t pdu_len = 0; - unsigned timeout = 100; /* milliseconds */ + unsigned timeout = 1; /* milliseconds */ time_t last_seconds = 0; time_t current_seconds = 0; uint32_t elapsed_seconds = 0;