diff options
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 5695e1d7d..323379d3e 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -883,7 +883,7 @@ server_disconnect (struct Session *s) | |||
883 | * @param to timeout in seconds | 883 | * @param to timeout in seconds |
884 | */ | 884 | */ |
885 | static void | 885 | static void |
886 | server_mhd_connection_timeout (struct HTTP_Server_Plugin *plugin, | 886 | server_mhd_connection_timeout (struct HTTP_Server_Plugin *plugin, |
887 | struct Session *s, | 887 | struct Session *s, |
888 | unsigned int to) | 888 | unsigned int to) |
889 | { | 889 | { |
@@ -925,7 +925,7 @@ server_mhd_connection_timeout (struct HTTP_Server_Plugin *plugin, | |||
925 | static int | 925 | static int |
926 | server_parse_url (struct HTTP_Server_Plugin *plugin, | 926 | server_parse_url (struct HTTP_Server_Plugin *plugin, |
927 | const char *url, | 927 | const char *url, |
928 | struct GNUNET_PeerIdentity *target, | 928 | struct GNUNET_PeerIdentity *target, |
929 | uint32_t *tag) | 929 | uint32_t *tag) |
930 | { | 930 | { |
931 | char * tag_start = NULL; | 931 | char * tag_start = NULL; |
@@ -1012,7 +1012,7 @@ server_parse_url (struct HTTP_Server_Plugin *plugin, | |||
1012 | if (DEBUG_URL_PARSE) GNUNET_break (0); | 1012 | if (DEBUG_URL_PARSE) GNUNET_break (0); |
1013 | return GNUNET_SYSERR; | 1013 | return GNUNET_SYSERR; |
1014 | } | 1014 | } |
1015 | if (GNUNET_OK != | 1015 | if (GNUNET_OK != |
1016 | GNUNET_CRYPTO_ecc_public_sign_key_from_string (target_start, | 1016 | GNUNET_CRYPTO_ecc_public_sign_key_from_string (target_start, |
1017 | hash_length, | 1017 | hash_length, |
1018 | &target->public_key)) | 1018 | &target->public_key)) |
@@ -1021,9 +1021,9 @@ server_parse_url (struct HTTP_Server_Plugin *plugin, | |||
1021 | if (DEBUG_URL_PARSE) GNUNET_break (0); | 1021 | if (DEBUG_URL_PARSE) GNUNET_break (0); |
1022 | return GNUNET_SYSERR; | 1022 | return GNUNET_SYSERR; |
1023 | } | 1023 | } |
1024 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | 1024 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, |
1025 | plugin->name, | 1025 | plugin->name, |
1026 | "Found target `%s' in URL\n", | 1026 | "Found target `%s' in URL\n", |
1027 | GNUNET_i2s_full (target)); | 1027 | GNUNET_i2s_full (target)); |
1028 | return GNUNET_OK; | 1028 | return GNUNET_OK; |
1029 | } | 1029 | } |
@@ -1181,7 +1181,7 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, | |||
1181 | if ((NULL == s->server_recv) || (NULL == s->server_send)) | 1181 | if ((NULL == s->server_recv) || (NULL == s->server_send)) |
1182 | { | 1182 | { |
1183 | to = (HTTP_SERVER_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL / 1000LL); | 1183 | to = (HTTP_SERVER_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL / 1000LL); |
1184 | MHD_set_connection_option (mhd_connection, | 1184 | MHD_set_connection_option (mhd_connection, |
1185 | MHD_CONNECTION_OPTION_TIMEOUT, to); | 1185 | MHD_CONNECTION_OPTION_TIMEOUT, to); |
1186 | server_reschedule (plugin, sc->mhd_daemon, GNUNET_NO); | 1186 | server_reschedule (plugin, sc->mhd_daemon, GNUNET_NO); |
1187 | } | 1187 | } |
@@ -2902,7 +2902,7 @@ server_session_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc | |||
2902 | s->timeout_task = GNUNET_SCHEDULER_NO_TASK; | 2902 | s->timeout_task = GNUNET_SCHEDULER_NO_TASK; |
2903 | GNUNET_log (TIMEOUT_LOG, | 2903 | GNUNET_log (TIMEOUT_LOG, |
2904 | "Session %p was idle for %s, disconnecting\n", | 2904 | "Session %p was idle for %s, disconnecting\n", |
2905 | s, | 2905 | s, |
2906 | GNUNET_STRINGS_relative_time_to_string (SERVER_SESSION_TIMEOUT, | 2906 | GNUNET_STRINGS_relative_time_to_string (SERVER_SESSION_TIMEOUT, |
2907 | GNUNET_YES)); | 2907 | GNUNET_YES)); |
2908 | 2908 | ||