aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index ca6c0febc..19fd632b8 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -887,6 +887,21 @@ http_server_plugin_disconnect_session (void *cls,
887 887
888 888
889/** 889/**
890 * Function that is called to get the keepalive factor.
891 * GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to
892 * calculate the interval between keepalive packets.
893 *
894 * @param cls closure with the `struct Plugin`
895 * @return keepalive factor
896 */
897static unsigned int
898http_server_query_keepalive_factor (void *cls)
899{
900 return 3;
901}
902
903
904/**
890 * Tell MHD that the connection should timeout after @a to seconds. 905 * Tell MHD that the connection should timeout after @a to seconds.
891 * 906 *
892 * @param plugin our plugin 907 * @param plugin our plugin
@@ -3098,6 +3113,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
3098 api->send = &http_server_plugin_send; 3113 api->send = &http_server_plugin_send;
3099 api->disconnect_peer = &http_server_plugin_disconnect_peer; 3114 api->disconnect_peer = &http_server_plugin_disconnect_peer;
3100 api->disconnect_session = &http_server_plugin_disconnect_session; 3115 api->disconnect_session = &http_server_plugin_disconnect_session;
3116 api->query_keepalive_factor = &http_server_query_keepalive_factor;
3101 api->check_address = &http_server_plugin_address_suggested; 3117 api->check_address = &http_server_plugin_address_suggested;
3102 api->get_session = &http_server_plugin_get_session; 3118 api->get_session = &http_server_plugin_get_session;
3103 3119