diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index face765e4..1c500f716 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1318,8 +1318,8 @@ schedule_next_keepalive (struct CadetConnection *c, int fwd) | |||
1318 | { | 1318 | { |
1319 | if (1 > c->create_retry) | 1319 | if (1 > c->create_retry) |
1320 | c->create_retry = 1; | 1320 | c->create_retry = 1; |
1321 | delay = GNUNET_TIME_relative_multiply (create_connection_time, | 1321 | delay = GNUNET_TIME_relative_saturating_multiply (create_connection_time, |
1322 | c->create_retry); | 1322 | c->create_retry); |
1323 | if (c->create_retry < 64) // TODO make configurable | 1323 | if (c->create_retry < 64) // TODO make configurable |
1324 | c->create_retry *= 2; | 1324 | c->create_retry *= 2; |
1325 | } | 1325 | } |
@@ -1548,7 +1548,7 @@ connection_reset_timeout (struct CadetConnection *c, int fwd) | |||
1548 | 1548 | ||
1549 | if (NULL != *ti) | 1549 | if (NULL != *ti) |
1550 | GNUNET_SCHEDULER_cancel (*ti); | 1550 | GNUNET_SCHEDULER_cancel (*ti); |
1551 | delay = GNUNET_TIME_relative_multiply (refresh_connection_time, 4); | 1551 | delay = GNUNET_TIME_relative_saturating_multiply (refresh_connection_time, 4); |
1552 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1552 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1553 | " timing out in %s\n", | 1553 | " timing out in %s\n", |
1554 | GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_NO)); | 1554 | GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_NO)); |
@@ -1681,7 +1681,7 @@ schedule_check_duplicates (struct CadetConnection *c) | |||
1681 | 1681 | ||
1682 | if (NULL != c->check_duplicates_task) | 1682 | if (NULL != c->check_duplicates_task) |
1683 | return; | 1683 | return; |
1684 | delay = GNUNET_TIME_relative_multiply (refresh_connection_time, 5); | 1684 | delay = GNUNET_TIME_relative_saturating_multiply (refresh_connection_time, 5); |
1685 | c->check_duplicates_task = GNUNET_SCHEDULER_add_delayed (delay, | 1685 | c->check_duplicates_task = GNUNET_SCHEDULER_add_delayed (delay, |
1686 | &check_duplicates, | 1686 | &check_duplicates, |
1687 | c); | 1687 | c); |