Tweak new RX queue algorithm to "expire" old entries to prevent always needing to traverse the whole queue array.
This commit is contained in:
parent
8ef78e7e7d
commit
56096be8b6
3 changed files with 10 additions and 3 deletions
|
@ -169,6 +169,11 @@
|
|||
*/
|
||||
#define ZT_RX_QUEUE_SIZE 64
|
||||
|
||||
/**
|
||||
* RX queue entries older than this do not "exist"
|
||||
*/
|
||||
#define ZT_RX_QUEUE_EXPIRE 4000
|
||||
|
||||
/**
|
||||
* Length of secret key in bytes -- 256-bit -- do not change
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue