aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-18 14:38:24 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-18 14:38:32 +0200
commit32a3a0ffb04487fbd1025cdddbf1ff47d0b2b7b5 (patch)
treef9df0caf327ecf86a241d4f0435a6dfff1d36dee /src/exchange/taler-exchange-httpd.c
parent5d3ae9655eb4275a28c9484bde9ca9aa4a14b139 (diff)
add post HTTP request check for hanging transactions
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 4813f921..8f86bf79 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -146,6 +146,12 @@ handle_mhd_completion_callback (void *cls,
return;
TEH_PARSE_post_cleanup_callback (*con_cls);
*con_cls = NULL;
+ /* check that we didn't leave any transactions hanging */
+ /* NOTE: In high-performance production, we might want to
+ remove this. */
+ TEH_plugin->preflight (TEH_plugin->cls,
+ TEH_plugin->get_session (TEH_plugin->cls));
+
}