Explorar o código

dmq: Lower the minimum ping interval to 5 sec

There is no real reason to have a minimum, let alone a minimum of 60 secs.
Alex Hermann %!s(int64=11) %!d(string=hai) anos
pai
achega
d29103045e
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      modules/dmq/dmq.c
  2. 1 1
      modules/dmq/dmq.h

+ 1 - 1
modules/dmq/dmq.c

@@ -66,7 +66,7 @@ struct sip_uri dmq_server_uri;
 
 str dmq_notification_address = {0, 0};
 struct sip_uri dmq_notification_uri;
-int ping_interval = MIN_PING_INTERVAL;
+int ping_interval = 60;
 
 /* TM bind */
 struct tm_binds tmb;

+ 1 - 1
modules/dmq/dmq.h

@@ -36,7 +36,7 @@
 #include "worker.h"
 
 #define DEFAULT_NUM_WORKERS	2
-#define MIN_PING_INTERVAL	60
+#define MIN_PING_INTERVAL	5
 
 extern int num_workers;
 extern dmq_worker_t* workers;