From: Christian Grothoff Date: Sun, 18 Oct 2015 18:16:59 +0000 (+0000) Subject: -only schedule select once per fragmented message X-Git-Tag: initial-import-from-subversion-38251~1241 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a86d72d1701fdcf193331d882218a41939fc138;p=oweals%2Fgnunet.git -only schedule select once per fragmented message --- diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index af1b412c2..e10a924d1 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1859,10 +1859,6 @@ enqueue_fragment (void *cls, msg_len); enqueue (plugin, udpw); - if (sizeof (struct IPv4UdpAddress) == session->address->address_length) - schedule_select_v4 (plugin); - else - schedule_select_v6 (plugin); } @@ -2101,6 +2097,10 @@ udp_plugin_send (void *cls, frag_ctx); s->frag_ctx = frag_ctx; s->last_transmit_time = frag_ctx->next_frag_time; + if (sizeof (struct IPv4UdpAddress) == s->address->address_length) + schedule_select_v4 (plugin); + else + schedule_select_v6 (plugin); GNUNET_STATISTICS_update (plugin->env->stats, "# UDP, fragmented messages active", 1,