diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-27 15:02:56 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-27 15:02:56 +0000 |
commit | 3e9940cb3859618e37cc35cb45ef6d62ff92677c (patch) | |
tree | d107c9a76a44f445720cb59de0a7835123198d0f /src/transport/plugin_transport_http_common.h | |
parent | b3bc7b843015205ed9bbf0f08e20d84c7ad5ac7f (diff) | |
download | gnunet-3e9940cb3859618e37cc35cb45ef6d62ff92677c.tar.gz gnunet-3e9940cb3859618e37cc35cb45ef6d62ff92677c.zip |
changes
Diffstat (limited to 'src/transport/plugin_transport_http_common.h')
-rw-r--r-- | src/transport/plugin_transport_http_common.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h index 0f83da6b3..edb99c5f2 100644 --- a/src/transport/plugin_transport_http_common.h +++ b/src/transport/plugin_transport_http_common.h | |||
@@ -27,16 +27,27 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_common.h" | 28 | #include "gnunet_common.h" |
29 | 29 | ||
30 | #define TESTING GNUNET_NO | 30 | /** |
31 | * Timeout values for testing | ||
32 | */ | ||
33 | #define TESTING GNUNET_YES | ||
31 | 34 | ||
32 | #if TESTING | 35 | #if TESTING |
33 | #define TIMEOUT_LOG GNUNET_ERROR_TYPE_ERROR | 36 | |
34 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) | 37 | #define HTTP_SERVER_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) |
35 | #define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) | 38 | #define HTTP_CLIENT_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) |
39 | #define CLIENT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 7) | ||
40 | #define SERVER_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 7) | ||
41 | #define TIMEOUT_LOG GNUNET_ERROR_TYPE_DEBUG | ||
42 | |||
36 | #else | 43 | #else |
37 | #define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) | 44 | |
45 | #define HTTP_SERVER_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) | ||
46 | #define HTTP_CLIENT_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) | ||
47 | #define CLIENT_SESSION_TIMEOUT GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT | ||
48 | #define SERVER_SESSION_TIMEOUT GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT | ||
38 | #define TIMEOUT_LOG GNUNET_ERROR_TYPE_DEBUG | 49 | #define TIMEOUT_LOG GNUNET_ERROR_TYPE_DEBUG |
39 | #define TIMEOUT GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT | 50 | |
40 | #endif | 51 | #endif |
41 | 52 | ||
42 | /** | 53 | /** |