diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-19 12:49:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-19 12:49:02 +0000 |
commit | 13121a349efdc9529d4c6c8590a8fbed0f34ce54 (patch) | |
tree | b7d4235ef6b8ce9b7604f581c857d87e9985e9a5 /src/include/gnunet_constants.h | |
parent | dfc745e0e977a20de99a88958f9baae6c850cd53 (diff) | |
download | gnunet-13121a349efdc9529d4c6c8590a8fbed0f34ce54.tar.gz gnunet-13121a349efdc9529d4c6c8590a8fbed0f34ce54.zip |
fast timeout on disconnect
Diffstat (limited to 'src/include/gnunet_constants.h')
-rw-r--r-- | src/include/gnunet_constants.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index c32add92a..56a868e2e 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h | |||
@@ -52,6 +52,12 @@ extern "C" | |||
52 | #define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5) | 52 | #define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5) |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * After how long do we consider a connection to a peer dead | ||
56 | * if we got an explicit disconnect and were unable to reconnect? | ||
57 | */ | ||
58 | #define GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) | ||
59 | |||
60 | /** | ||
55 | * How long do we delay reading more from a peer after a quota violation? | 61 | * How long do we delay reading more from a peer after a quota violation? |
56 | */ | 62 | */ |
57 | #define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2) | 63 | #define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2) |