1 Index: src/ats/ats_api_scheduling.c
2 ===================================================================
3 --- src/ats/ats_api_scheduling.c (revision 29617)
4 +++ src/ats/ats_api_scheduling.c (working copy)
9 -#define INTERFACE_PROCESSING_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
10 +#define INTERFACE_PROCESSING_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 1)
14 Index: src/ats/gnunet-service-ats-solver_proportional.c
15 ===================================================================
16 --- src/ats/gnunet-service-ats-solver_proportional.c (revision 29617)
17 +++ src/ats/gnunet-service-ats-solver_proportional.c (working copy)
22 -#define PREF_AGING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
23 +#define PREF_AGING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
24 #define PREF_AGING_FACTOR 0.95
26 #define DEFAULT_REL_PREFERENCE 1.0
27 #define DEFAULT_ABS_PREFERENCE 0.0
28 -#define MIN_UPDATE_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
29 +#define MIN_UPDATE_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
32 * A handle for the proportional solver
33 Index: src/ats/gnunet-service-ats_normalization.h
34 ===================================================================
35 --- src/ats/gnunet-service-ats_normalization.h (revision 29617)
36 +++ src/ats/gnunet-service-ats_normalization.h (working copy)
39 #include "gnunet_ats_service.h"
41 -#define PREF_AGING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
42 +#define PREF_AGING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
43 #define PREF_AGING_FACTOR 0.95
44 #define PREF_EPSILON 0.1
46 Index: src/include/gnunet_constants.h
47 ===================================================================
48 --- src/include/gnunet_constants.h (revision 29617)
49 +++ src/include/gnunet_constants.h (working copy)
51 * After how long do we consider a connection to a peer dead
52 * if we don't receive messages from the peer?
54 -#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
55 +#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 5)
58 * How long do we delay reading more from a peer after a quota violation?
60 * even if we assume that the service commonly does not
61 * respond instantly (DNS, Database, etc.).
63 -#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10)
64 +#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
67 * How long do we delay messages to get larger packet sizes (CORKing)?
68 Index: src/transport/gnunet-service-transport_neighbours.c
69 ===================================================================
70 --- src/transport/gnunet-service-transport_neighbours.c (revision 29617)
71 +++ src/transport/gnunet-service-transport_neighbours.c (working copy)
73 * send 3 keepalives in each interval, so 3 messages would need to be
74 * lost in a row for a disconnect).
76 -#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
77 +#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 100)
80 * How long are we willing to wait for a response from ATS before timing out?
81 Index: src/transport/gnunet-service-transport_validation.c
82 ===================================================================
83 --- src/transport/gnunet-service-transport_validation.c (revision 29617)
84 +++ src/transport/gnunet-service-transport_validation.c (working copy)
86 * OTOH, we don't want to spend too much time generating PONG signatures,
87 * so they must have some lifetime to reduce our CPU usage.
89 -#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 1)
90 +#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 12)
93 * After how long do we expire an address in a HELLO that we just
95 * we cannot validate (because after this time we can destroy the
98 -#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
99 +#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 4)
102 * How often do we PING an address that we have successfully validated
104 * in the past but are not actively using? Should be (significantly)
105 * smaller than HELLO_ADDRESS_EXPIRATION.
107 -#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
108 +#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 6)
111 * How often do we PING an address that we are currently using?
113 -#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 2)
114 +#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 2)
117 * How much delay is acceptable for sending the PING or PONG?
119 -#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
120 +#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1)
123 * Size of the validation map hashmap.
127 validation_next = GNUNET_TIME_absolute_get();
128 - validation_delay.rel_value_us = (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value_us) / (max_fds / 2);
129 + validation_delay.rel_value_us = GNUNET_TIME_UNIT_MILLISECONDS.rel_value_us;
130 validations_fast_start_threshold = (max_fds / 2);
131 validations_running = 0;
132 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Validation uses a fast start threshold of %u connections and a delay between of %s\n ",