diff options
author | Dimitri Staessens <[email protected]> | 2022-03-10 08:23:15 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2022-03-11 17:51:27 +0100 |
commit | f300e609e7975dacc06996d407170fe58aa49439 (patch) | |
tree | b6210cb429de6ab1a3cd555562b8b4b15a7f82c0 /src/lib/shm_rdrbuff.c | |
parent | a7032da6bbe875596ea1cb348a747123cda7d408 (diff) | |
download | ouroboros-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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/shm_rdrbuff.c')
-rw-r--r-- | src/lib/shm_rdrbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index e3552100..dfa45af6 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -578,7 +578,7 @@ uint8_t * shm_du_buff_head_release(struct shm_du_buff * sdb, } uint8_t * shm_du_buff_tail_release(struct shm_du_buff * sdb, - size_t size) + size_t size) { assert(sdb); assert(!(size > sdb->du_tail - sdb->du_head)); |