diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-25 14:53:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-25 14:53:00 +0000 |
commit | 6fab9d7757ed01d3ae98404c73ed98d80c235d9d (patch) | |
tree | 2cd7ca4bf9926bdaa750ce79d1fd41cfdc95a496 | |
parent | 05177a046c5d292f7b4c4e7124309ad70555d320 (diff) | |
download | gnunet-6fab9d7757ed01d3ae98404c73ed98d80c235d9d.tar.gz gnunet-6fab9d7757ed01d3ae98404c73ed98d80c235d9d.zip |
violat
-rw-r--r-- | src/include/gnunet_constants.h | 5 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index 3b56f26d6..bfb36a2ea 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h | |||
@@ -52,6 +52,11 @@ 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 | * How long do we delay reading more from a peer after a quota violation? | ||
56 | */ | ||
57 | #define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2) | ||
58 | |||
59 | /** | ||
55 | * How long do we wait after a FORK+EXEC before testing for the | 60 | * How long do we wait after a FORK+EXEC before testing for the |
56 | * resulting process to be up (port open, waitpid, etc.)? | 61 | * resulting process to be up (port open, waitpid, etc.)? |
57 | */ | 62 | */ |
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 84f939578..7c2c0eadd 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -3147,7 +3147,7 @@ plugin_env_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
3147 | gettext_noop ("# bandwidth quota violations by other peers"), | 3147 | gettext_noop ("# bandwidth quota violations by other peers"), |
3148 | 1, | 3148 | 1, |
3149 | GNUNET_NO); | 3149 | GNUNET_NO); |
3150 | return GNUNET_TIME_UNIT_MINUTES; /* minimum penalty, likely ignored (UDP...) */ | 3150 | return GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT; |
3151 | } | 3151 | } |
3152 | switch (ntohs (message->type)) | 3152 | switch (ntohs (message->type)) |
3153 | { | 3153 | { |