aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-22 12:36:41 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-22 12:36:41 +0000
commitddd69826be47a1956c6972c2cfcadfa7902b8639 (patch)
treedd632db2ba084a1a83b0ef57189333f2bbd354a6 /src/transport/plugin_transport_wlan.c
parent582f893b55d9536864b59ad3ccb1dfeb43ff31b7 (diff)
downloadgnunet-ddd69826be47a1956c6972c2cfcadfa7902b8639.tar.gz
gnunet-ddd69826be47a1956c6972c2cfcadfa7902b8639.zip
-trying to fix fragmentation / udp performance, not working yet
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index b73d444eb..ccf5d587c 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -790,7 +790,7 @@ free_fragment_message (struct FragmentMessage *fm)
790 GNUNET_HELPER_send_cancel (fm->sh); 790 GNUNET_HELPER_send_cancel (fm->sh);
791 fm->sh = NULL; 791 fm->sh = NULL;
792 } 792 }
793 GNUNET_FRAGMENT_context_destroy (fm->fragcontext); 793 GNUNET_FRAGMENT_context_destroy (fm->fragcontext, NULL, NULL);
794 if (fm->timeout_task != GNUNET_SCHEDULER_NO_TASK) 794 if (fm->timeout_task != GNUNET_SCHEDULER_NO_TASK)
795 { 795 {
796 GNUNET_SCHEDULER_cancel (fm->timeout_task); 796 GNUNET_SCHEDULER_cancel (fm->timeout_task);
@@ -857,10 +857,13 @@ send_with_fragmentation (struct MacEndpoint *endpoint,
857 fm->timeout = GNUNET_TIME_relative_to_absolute (timeout); 857 fm->timeout = GNUNET_TIME_relative_to_absolute (timeout);
858 fm->cont = cont; 858 fm->cont = cont;
859 fm->cont_cls = cont_cls; 859 fm->cont_cls = cont_cls;
860 /* 1 MBit/s typical data rate, 1430 byte fragments => ~100 ms per message */
860 fm->fragcontext = 861 fm->fragcontext =
861 GNUNET_FRAGMENT_context_create (plugin->env->stats, WLAN_MTU, 862 GNUNET_FRAGMENT_context_create (plugin->env->stats, WLAN_MTU,
862 &plugin->tracker, 863 &plugin->tracker,
863 GNUNET_TIME_UNIT_SECONDS, 864 GNUNET_TIME_UNIT_SECONDS,
865 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
866 100),
864 msg, 867 msg,
865 &transmit_fragment, fm); 868 &transmit_fragment, fm);
866 fm->timeout_task = 869 fm->timeout_task =