summaryrefslogtreecommitdiff
path: root/src/lib/config.h.in
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2022-03-10 08:23:15 +0100
committerSander Vrijders <sander@ouroboros.rocks>2022-03-11 17:51:27 +0100
commitf300e609e7975dacc06996d407170fe58aa49439 (patch)
treeb6210cb429de6ab1a3cd555562b8b4b15a7f82c0 /src/lib/config.h.in
parenta7032da6bbe875596ea1cb348a747123cda7d408 (diff)
downloadouroboros-f300e609e7975dacc06996d407170fe58aa49439.tar.gz
ouroboros-f300e609e7975dacc06996d407170fe58aa49439.zip
lib: Fix buffer allocation when retransmitting0.19.0
The timerwheel was retransmitting packets and the error check for negative values of the rbuff allocation was instead checking for non-zero values, causing a buffer allocation to succeed but the program to continue down the unhappy path leaving that packet stuck in the buffer unattended. Also fixes wrongly scheduled retransmissions that cause packet storms. FRCP is much more stable now. Still needs some work for high bandwidth-delay products (fast-retransmit). 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.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/config.h.in b/src/lib/config.h.in
index 5c5b6caf..d534cf77 100644
--- a/src/lib/config.h.in
+++ b/src/lib/config.h.in
@@ -69,9 +69,8 @@
#define DU_BUFF_TAILSPACE @DU_BUFF_TAILSPACE@
/* Default Delta-t parameters */
-#define DELT_MPL (@DELTA_T_MPL@ * BILLION) /* ns */
-#define DELT_A (@DELTA_T_ACK@ * BILLION) /* ns */
-#define DELT_R (@DELTA_T_RTX@ * BILLION) /* ns */
+#define DELT_A (@DELTA_T_ACK@) /* ns */
+#define DELT_R (@DELTA_T_RTX@) /* ns */
#define DELT_ACK (@DELTA_T_ACK_DELAY@ * MILLION) /* ns */