diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 13:43:09 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 13:43:09 +0000 |
commit | 4e62ea52d994deed44a0a5cfd15faa826cd39e85 (patch) | |
tree | 95b63d77bd4868db57afe15e6c80ed0fda7b74f5 /src/transport/plugin_transport_http_common.h | |
parent | f0af6efe99502662d6d1ba6596f7d4e6e1680424 (diff) | |
download | gnunet-4e62ea52d994deed44a0a5cfd15faa826cd39e85.tar.gz gnunet-4e62ea52d994deed44a0a5cfd15faa826cd39e85.zip |
fix if plugin is loaded only in stub mode
Diffstat (limited to 'src/transport/plugin_transport_http_common.h')
-rw-r--r-- | src/transport/plugin_transport_http_common.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h index ae37f605a..51473d73a 100644 --- a/src/transport/plugin_transport_http_common.h +++ b/src/transport/plugin_transport_http_common.h | |||
@@ -34,7 +34,6 @@ | |||
34 | #define TESTING GNUNET_NO | 34 | #define TESTING GNUNET_NO |
35 | 35 | ||
36 | #if TESTING | 36 | #if TESTING |
37 | |||
38 | #define HTTP_SERVER_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) | 37 | #define HTTP_SERVER_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) |
39 | #define HTTP_CLIENT_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) | 38 | #define HTTP_CLIENT_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) |
40 | #define CLIENT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 7) | 39 | #define CLIENT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 7) |
@@ -43,6 +42,12 @@ | |||
43 | 42 | ||
44 | #else | 43 | #else |
45 | 44 | ||
45 | #if BUILD_HTTPS | ||
46 | #define PROTOCOL "https" | ||
47 | #else | ||
48 | #define PROTOCOL "http" | ||
49 | #endif | ||
50 | |||
46 | #define HTTP_SERVER_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) | 51 | #define HTTP_SERVER_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) |
47 | #define HTTP_CLIENT_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) | 52 | #define HTTP_CLIENT_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) |
48 | #define CLIENT_SESSION_TIMEOUT GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT | 53 | #define CLIENT_SESSION_TIMEOUT GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT |