aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_constants.h5
-rw-r--r--src/transport/gnunet-service-transport.c2
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 {