From a9ca26c6985d10d1c86a33c56b06c1ae679cda0f Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 7 Jun 2018 12:58:07 -0700 Subject: Added TX queue cap for issue #769 --- node/Constants.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'node/Constants.hpp') diff --git a/node/Constants.hpp b/node/Constants.hpp index e2a35dce..03b04e68 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -193,6 +193,14 @@ */ #define ZT_RX_QUEUE_SIZE 64 +/** + * Size of TX queue + * + * This is about 2mb, and can be decreased for small devices. A queue smaller + * than about 4 is probably going to cause a lot of lost packets. + */ +#define ZT_TX_QUEUE_SIZE 64 + /** * Length of secret key in bytes -- 256-bit -- do not change */ -- cgit v1.2.3