diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:45 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:45 +0000 |
commit | ceb05563e00813b8611e46bb9ffe895ccac86afa (patch) | |
tree | ed942063b3a063d4d00183ba6bd107ddb03b4281 /src | |
parent | 98d657cd445d60e793484594449c643655b23df5 (diff) | |
download | gnunet-ceb05563e00813b8611e46bb9ffe895ccac86afa.tar.gz gnunet-ceb05563e00813b8611e46bb9ffe895ccac86afa.zip |
- minor changes, TODO, debug message
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 47e728ed0..6dbabb5ab 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1321,7 +1321,7 @@ schedule_next_keepalive (struct CadetConnection *c, int fwd) | |||
1321 | c->create_retry = 1; | 1321 | c->create_retry = 1; |
1322 | delay = GNUNET_TIME_relative_multiply (create_connection_time, | 1322 | delay = GNUNET_TIME_relative_multiply (create_connection_time, |
1323 | c->create_retry); | 1323 | c->create_retry); |
1324 | if (c->create_retry < 64) | 1324 | if (c->create_retry < 64) // TODO make configurable |
1325 | c->create_retry *= 2; | 1325 | c->create_retry *= 2; |
1326 | } | 1326 | } |
1327 | 1327 | ||
@@ -1682,7 +1682,7 @@ does_connection_exist (struct CadetConnection *conn) | |||
1682 | GNUNET_STATISTICS_update (stats, "# duplicate connections", 1, GNUNET_NO); | 1682 | GNUNET_STATISTICS_update (stats, "# duplicate connections", 1, GNUNET_NO); |
1683 | return GNUNET_YES; | 1683 | return GNUNET_YES; |
1684 | } | 1684 | } |
1685 | LOG (GNUNET_ERROR_TYPE_DEBUG, " duplicate not valid, connection unique\n"); | 1685 | LOG (GNUNET_ERROR_TYPE_DEBUG, " duplicate not ready, connection unique\n"); |
1686 | return GNUNET_NO; | 1686 | return GNUNET_NO; |
1687 | } | 1687 | } |
1688 | else | 1688 | else |