aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index d1ea23645..5faed3ad0 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1825,6 +1825,10 @@ qc_fragment_sent (void *cls,
1825 GNUNET_assert (NULL != udpw->frag_ctx); 1825 GNUNET_assert (NULL != udpw->frag_ctx);
1826 if (GNUNET_OK == result) 1826 if (GNUNET_OK == result)
1827 { 1827 {
1828 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1829 "Fragment of message with %u bytes transmitted to %s\n",
1830 (unsigned int) udpw->payload_size,
1831 GNUNET_i2s (&udpw->session->target));
1828 GNUNET_FRAGMENT_context_transmission_done (udpw->frag_ctx->frag); 1832 GNUNET_FRAGMENT_context_transmission_done (udpw->frag_ctx->frag);
1829 GNUNET_STATISTICS_update (plugin->env->stats, 1833 GNUNET_STATISTICS_update (plugin->env->stats,
1830 "# UDP, fragmented msgs, fragments, sent, success", 1834 "# UDP, fragmented msgs, fragments, sent, success",
@@ -1837,6 +1841,10 @@ qc_fragment_sent (void *cls,
1837 } 1841 }
1838 else 1842 else
1839 { 1843 {
1844 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1845 "Failed to transmit fragment of message with %u bytes to %s\n",
1846 (unsigned int) udpw->payload_size,
1847 GNUNET_i2s (&udpw->session->target));
1840 fragmented_message_done (udpw->frag_ctx, 1848 fragmented_message_done (udpw->frag_ctx,
1841 GNUNET_SYSERR); 1849 GNUNET_SYSERR);
1842 GNUNET_STATISTICS_update (plugin->env->stats, 1850 GNUNET_STATISTICS_update (plugin->env->stats,
@@ -1892,6 +1900,10 @@ enqueue_fragment (void *cls,
1892 msg_len); 1900 msg_len);
1893 enqueue (plugin, 1901 enqueue (plugin,
1894 udpw); 1902 udpw);
1903 if (session->address->address_length == sizeof (struct IPv4UdpAddress))
1904 schedule_select_v4 (plugin);
1905 else
1906 schedule_select_v6 (plugin);
1895} 1907}
1896 1908
1897 1909
@@ -2102,6 +2114,10 @@ udp_plugin_send (void *cls,
2102 "# UDP, unfragmented bytes payload queued total", 2114 "# UDP, unfragmented bytes payload queued total",
2103 msgbuf_size, 2115 msgbuf_size,
2104 GNUNET_NO); 2116 GNUNET_NO);
2117 if (s->address->address_length == sizeof (struct IPv4UdpAddress))
2118 schedule_select_v4 (plugin);
2119 else
2120 schedule_select_v6 (plugin);
2105 } 2121 }
2106 else 2122 else
2107 { 2123 {
@@ -2167,10 +2183,6 @@ udp_plugin_send (void *cls,
2167 notify_session_monitor (s->plugin, 2183 notify_session_monitor (s->plugin,
2168 s, 2184 s,
2169 GNUNET_TRANSPORT_SS_UPDATE); 2185 GNUNET_TRANSPORT_SS_UPDATE);
2170 if (s->address->address_length == sizeof (struct IPv4UdpAddress))
2171 schedule_select_v4 (plugin);
2172 else
2173 schedule_select_v6 (plugin);
2174 return udpmlen; 2186 return udpmlen;
2175} 2187}
2176 2188