From 15dd8e6cc1199d611d804853e134882bf13b234a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 Feb 2015 00:53:22 +0000 Subject: Various changes: - removed "in_use" from being passed to ATS, no longer needed as we tell ATS when we cannot follow a suggestion by removing the address; simplifies the code a lot - better handling of state machine, fallback to primary session if address switch to new session timed out - nicer logging - more comments - new testcase failures, because of #3652, #3651 and #3650 (or more that i missed). --- src/transport/plugin_transport_http_server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/transport/plugin_transport_http_server.c') diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index c7c145328..fc35b08fb 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -604,6 +604,7 @@ server_delete_session (struct Session *s) plugin->env->session_end (plugin->env->cls, s->address, s); + s->known_to_service = GNUNET_NO; } if (NULL != s->msg_tk) { @@ -1522,7 +1523,7 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, notify_session_monitor (plugin, s, GNUNET_TRANSPORT_SS_UP); - plugin->env->session_start (NULL, + plugin->env->session_start (plugin->env->cls, s->address, s, NULL, 0); @@ -1670,7 +1671,7 @@ server_receive_mst_cb (void *cls, if (GNUNET_NO == s->known_to_service) { s->known_to_service = GNUNET_YES; - plugin->env->session_start (NULL, + plugin->env->session_start (plugin->env->cls, s->address, s, NULL, -- cgit v1.2.3