summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-03-01 14:46:13 +0100
committerFlorian Dold <florian@dold.me>2021-03-01 14:46:13 +0100
commitd08fe7d715adcf093f21b0abbbeed0b781314819 (patch)
treeb4f5f75303cc3269acdb31b127a188a6d206ce22 /src/backend/taler-merchant-httpd.c
parentec2735263dbe831c2d59a1f5dbc29f3d21355220 (diff)
downloadmerchant-d08fe7d715adcf093f21b0abbbeed0b781314819.tar.gz
merchant-d08fe7d715adcf093f21b0abbbeed0b781314819.tar.bz2
merchant-d08fe7d715adcf093f21b0abbbeed0b781314819.zip
set async scope ID when entering MHD completion callback
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 45d7ed07..7f9f8e3b 100644
--- 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;
}