diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2020-04-30 21:21:36 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2020-05-01 10:13:10 +0200 |
commit | 04b5a939c6a29cdbc733b1113ee8baf400b601bb (patch) | |
tree | aa752b9d9f75923dd59ea01430dd17d970fcd2e5 /src/lib/config.h.in | |
parent | 978266fe4beba21292daad2d341fe5ff22e08aba (diff) | |
download | ouroboros-04b5a939c6a29cdbc733b1113ee8baf400b601bb.tar.gz ouroboros-04b5a939c6a29cdbc733b1113ee8baf400b601bb.zip |
lib: Fix updating retransmission wheel
Fixes infinite rescheduling with RTO getting lower than the timerwheel
resolution. For very low RTO values we'd need a big packet buffer with
the current memory allocator implementation (rdrbuff). Setting a
(configurable) minimum RTO (250 us) reduces this need.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/config.h.in')
-rw-r--r-- | src/lib/config.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/config.h.in b/src/lib/config.h.in index b6e49100..7cac76a6 100644 --- a/src/lib/config.h.in +++ b/src/lib/config.h.in @@ -66,3 +66,5 @@ #define DU_BUFF_HEADSPACE @DU_BUFF_HEADSPACE@ #define DU_BUFF_TAILSPACE @DU_BUFF_TAILSPACE@ + +#define RTO_MIN @FRCT_RTO_MIN@ |