1 Index: src/include/gnunet_constants.h
2 ===================================================================
3 --- src/include/gnunet_constants.h (revision 26030)
4 +++ src/include/gnunet_constants.h (working copy)
6 * After how long do we consider a connection to a peer dead
7 * if we don't receive messages from the peer?
9 -#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
10 +#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 5)
13 * How long do we delay reading more from a peer after a quota violation?
15 * even if we assume that the service commonly does not
16 * respond instantly (DNS, Database, etc.).
18 -#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10)
19 +#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
22 * How long do we delay messages to get larger packet sizes (CORKing)?
23 Index: src/transport/gnunet-service-transport_neighbours.c
24 ===================================================================
25 --- src/transport/gnunet-service-transport_neighbours.c (revision 26030)
26 +++ src/transport/gnunet-service-transport_neighbours.c (working copy)
28 * send 3 keepalives in each interval, so 3 messages would need to be
29 * lost in a row for a disconnect).
31 -#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
32 +#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 100)
35 * How long are we willing to wait for a response from ATS before timing out?
36 Index: src/transport/gnunet-service-transport_validation.c
37 ===================================================================
38 --- src/transport/gnunet-service-transport_validation.c (revision 26030)
39 +++ src/transport/gnunet-service-transport_validation.c (working copy)
41 * OTOH, we don't want to spend too much time generating PONG signatures,
42 * so they must have some lifetime to reduce our CPU usage.
44 -#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 1)
45 +#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 12)
48 * After how long do we expire an address in a HELLO that we just
50 * we cannot validate (because after this time we can destroy the
53 -#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
54 +#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 4)
57 * How often do we PING an address that we have successfully validated
58 * in the past but are not actively using? Should be (significantly)
59 * smaller than HELLO_ADDRESS_EXPIRATION.
61 -#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
62 +#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 6)
65 * How often do we PING an address that we are currently using?
67 -#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 2)
68 +#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 2)
71 * How much delay is acceptable for sending the PING or PONG?
73 -#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
74 +#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1)
77 * Size of the validation map hashmap.
80 GST_validation_start (unsigned int max_fds)
82 - validation_next = GNUNET_TIME_absolute_get();
83 - validation_delay.rel_value = (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value) / max_fds;
84 - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Delay between validations: %u ms\n ", validation_delay.rel_value);
85 + validation_next = GNUNET_TIME_absolute_get();
86 + validation_delay.rel_value = GNUNET_TIME_UNIT_MILLISECONDS.rel_value;
87 + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Delay between validations: %u ms\n ", validation_delay.rel_value);
88 validation_map = GNUNET_CONTAINER_multihashmap_create (VALIDATION_MAP_SIZE,
90 pnc = GNUNET_PEERINFO_notify (GST_cfg, &process_peerinfo_hello, NULL);