summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-04 22:20:59 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-04 22:20:59 +0200
commitc2ccd9da323ca84aceb1a3356d6d59b9c7d8e4ad (patch)
tree3e0961ae425e0bf13e940d3180f04efcb0ddb823 /src
parent14537ef71b43ac47fe342c4e88f7bd3675ed1e39 (diff)
fix
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-tng.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 206c59363..3e4d750a2 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -8650,16 +8650,6 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
if (NULL != pos->qe)
continue; /* not eligible */
sc->consideration_counter++;
- /* determine if we have to reliability-box, if so add reliability box
- overhead */
- relb = GNUNET_NO;
- if ((GNUNET_NO == frag) &&
- (0 == (pos->prefs & GNUNET_MQ_PREF_UNRELIABLE)) &&
- (GNUNET_TRANSPORT_CC_RELIABLE != queue->tc->details.communicator.cc))
- {
- relb = GNUNET_YES;
- real_overhead += sizeof (struct TransportReliabilityBoxMessage);
- }
/* determine if we have to fragment, if so add fragmentation
overhead! */
frag = GNUNET_NO;
@@ -8679,6 +8669,16 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
}
real_overhead = overhead + sizeof (struct TransportFragmentBoxMessage);
}
+ /* determine if we have to reliability-box, if so add reliability box
+ overhead */
+ relb = GNUNET_NO;
+ if ((GNUNET_NO == frag) &&
+ (0 == (pos->prefs & GNUNET_MQ_PREF_UNRELIABLE)) &&
+ (GNUNET_TRANSPORT_CC_RELIABLE != queue->tc->details.communicator.cc))
+ {
+ relb = GNUNET_YES;
+ real_overhead += sizeof (struct TransportReliabilityBoxMessage);
+ }
/* Finally, compare to existing 'best' in sc to see if this 'pos' pending
message would beat it! */