diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-05 01:08:45 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-05 01:08:45 +0000 |
commit | c46f50085c0d3b8914d5de765115431e8c2086b8 (patch) | |
tree | 95da848e2d17e41f4a016376efd6a016769a11f3 /src | |
parent | b4f43f77d90fdef213fbb4f7740a929185484756 (diff) | |
download | gnunet-c46f50085c0d3b8914d5de765115431e8c2086b8.tar.gz gnunet-c46f50085c0d3b8914d5de765115431e8c2086b8.zip |
- timing
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_channel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index 2c27ac675..ed3ebdd07 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c | |||
@@ -34,7 +34,8 @@ | |||
34 | 34 | ||
35 | #define LOG(level, ...) GNUNET_log_from(level,"mesh-chn",__VA_ARGS__) | 35 | #define LOG(level, ...) GNUNET_log_from(level,"mesh-chn",__VA_ARGS__) |
36 | 36 | ||
37 | #define MESH_RETRANSMIT_TIME GNUNET_TIME_UNIT_SECONDS | 37 | #define MESH_RETRANSMIT_TIME GNUNET_TIME_relative_multiply(\ |
38 | GNUNET_TIME_UNIT_MILLISECONDS, 250) | ||
38 | #define MESH_RETRANSMIT_MARGIN 4 | 39 | #define MESH_RETRANSMIT_MARGIN 4 |
39 | 40 | ||
40 | 41 | ||
@@ -755,6 +756,9 @@ ch_message_sent (void *cls, | |||
755 | && GNUNET_MESSAGE_TYPE_MESH_DATA_ACK != type) | 756 | && GNUNET_MESSAGE_TYPE_MESH_DATA_ACK != type) |
756 | { | 757 | { |
757 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == rel->retry_task); | 758 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == rel->retry_task); |
759 | LOG (GNUNET_ERROR_TYPE_DEBUG, "!!! STD BACKOFF %s\n", | ||
760 | GNUNET_STRINGS_relative_time_to_string (rel->retry_timer, | ||
761 | GNUNET_NO)); | ||
758 | rel->retry_timer = GNUNET_TIME_STD_BACKOFF (rel->retry_timer); | 762 | rel->retry_timer = GNUNET_TIME_STD_BACKOFF (rel->retry_timer); |
759 | rel->retry_task = GNUNET_SCHEDULER_add_delayed (rel->retry_timer, | 763 | rel->retry_task = GNUNET_SCHEDULER_add_delayed (rel->retry_timer, |
760 | &channel_recreate, rel); | 764 | &channel_recreate, rel); |
@@ -1768,7 +1772,7 @@ GMCH_handle_local_create (struct MeshClient *c, | |||
1768 | /* In unreliable channels, we'll use the DLL to buffer BCK data */ | 1772 | /* In unreliable channels, we'll use the DLL to buffer BCK data */ |
1769 | ch->root_rel = GNUNET_new (struct MeshChannelReliability); | 1773 | ch->root_rel = GNUNET_new (struct MeshChannelReliability); |
1770 | ch->root_rel->ch = ch; | 1774 | ch->root_rel->ch = ch; |
1771 | ch->root_rel->retry_timer = GNUNET_TIME_UNIT_SECONDS; | 1775 | ch->root_rel->retry_timer = MESH_RETRANSMIT_TIME; |
1772 | ch->root_rel->expected_delay.rel_value_us = 0; | 1776 | ch->root_rel->expected_delay.rel_value_us = 0; |
1773 | 1777 | ||
1774 | LOG (GNUNET_ERROR_TYPE_DEBUG, "CREATED CHANNEL %s\n", GMCH_2s (ch)); | 1778 | LOG (GNUNET_ERROR_TYPE_DEBUG, "CREATED CHANNEL %s\n", GMCH_2s (ch)); |