commit d08fe7d715adcf093f21b0abbbeed0b781314819
parent ec2735263dbe831c2d59a1f5dbc29f3d21355220
Author: Florian Dold <florian@dold.me>
Date: Mon, 1 Mar 2021 14:46:13 +0100
set async scope ID when entering MHD completion callback
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -774,6 +774,7 @@ handle_mhd_completion_callback (void *cls,
if (NULL == hc)
return;
+ GNUNET_SCHEDULER_begin_async_scope (&hc->async_scope_id);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Finished handling request for `%s' with MHD termination code %d\n",
hc->url,
@@ -786,6 +787,9 @@ handle_mhd_completion_callback (void *cls,
json_decref (hc->request_body);
if (NULL != hc->instance)
TMH_instance_decref (hc->instance);
+ memset (&hc->async_scope_id,
+ 0,
+ sizeof (struct GNUNET_AsyncScopeId));
GNUNET_free (hc);
*con_cls = NULL;
}