diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-02-29 00:56:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-02-29 00:56:48 +0100 |
commit | 295be9df8e96d55df0d58940dcfeee3f3a93840d (patch) | |
tree | 7f5512b9f54d36d39c8e30b23ca21a7f480b41a9 /src/exchange/taler-exchange-httpd_deposits_get.c | |
parent | 3f0bfbeb22578f6d2ee699100fd185132fbf1c88 (diff) | |
download | exchange-295be9df8e96d55df0d58940dcfeee3f3a93840d.tar.gz exchange-295be9df8e96d55df0d58940dcfeee3f3a93840d.tar.bz2 exchange-295be9df8e96d55df0d58940dcfeee3f3a93840d.zip |
fix #8452
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposits_get.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposits_get.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposits_get.c b/src/exchange/taler-exchange-httpd_deposits_get.c index 818900c60..0850d19eb 100644 --- a/src/exchange/taler-exchange-httpd_deposits_get.c +++ b/src/exchange/taler-exchange-httpd_deposits_get.c @@ -157,6 +157,7 @@ void TEH_deposits_get_cleanup () { struct DepositWtidContext *n; + for (struct DepositWtidContext *ctx = dwc_head; NULL != ctx; ctx = n) @@ -313,13 +314,15 @@ db_event_cb (void *cls, (void) extra; (void) extra_size; - if (GNUNET_NO != ctx->suspended) + if (GNUNET_YES != ctx->suspended) return; /* might get multiple wake-up events */ GNUNET_CONTAINER_DLL_remove (dwc_head, dwc_tail, ctx); GNUNET_async_scope_enter (&ctx->rc->async_scope_id, &old_scope); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Resuming request handling\n"); TEH_check_invariants (); ctx->suspended = GNUNET_NO; MHD_resume_connection (ctx->rc->connection); @@ -356,6 +359,7 @@ handle_track_transaction_request ( &rep.header, &db_event_cb, ctx); + GNUNET_break (NULL != ctx->eh); } { MHD_RESULT mhd_ret; @@ -379,6 +383,8 @@ handle_track_transaction_request ( if ( (GNUNET_TIME_absolute_is_future (ctx->timeout)) && (GNUNET_NO == ctx->suspended) ) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Suspending request handling\n"); GNUNET_CONTAINER_DLL_insert (dwc_head, dwc_tail, ctx); |