gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: TNG: Fixed bug of not sending the change


From: gnunet
Subject: [gnunet] branch master updated: TNG: Fixed bug of not sending the changed window size, which takes into account the used and lost data.
Date: Wed, 08 Feb 2023 10:45:18 +0100

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new a4b5e8d59 TNG: Fixed bug of not sending the changed window size, which 
takes into account the used and lost data.
a4b5e8d59 is described below

commit a4b5e8d59bd8a607d5e26bc5ca1d9fab44c6e08a
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Wed Feb 8 10:16:27 2023 +0100

    TNG: Fixed bug of not sending the changed window size, which takes into 
account the used and lost data.
---
 src/transport/gnunet-service-tng.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/transport/gnunet-service-tng.c 
b/src/transport/gnunet-service-tng.c
index a1a46443e..c04e33624 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -5099,7 +5099,9 @@ consider_sending_fc (void *cls)
   fc.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_FLOW_CONTROL);
   fc.header.size = htons (sizeof(fc));
   fc.seq = htonl (vl->fc_seq_gen++);
-  fc.inbound_window_size = GNUNET_htonll (vl->incoming_fc_window_size);
+  fc.inbound_window_size = GNUNET_htonll (vl->incoming_fc_window_size +
+                                          vl->incoming_fc_window_size_used +
+                                          vl->incoming_fc_window_size_loss);
   fc.outbound_sent = GNUNET_htonll (vl->outbound_fc_window_size_used);
   fc.outbound_window_size = GNUNET_htonll (vl->outbound_fc_window_size);
   fc.sender_time = GNUNET_TIME_absolute_hton (monotime);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]