summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_merchant_get_order.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-18 18:34:14 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-18 18:34:14 +0200
commit534edf2d0fc0e2a03736b9251703bad2ffaf14f7 (patch)
tree1ebe72b3cbaa939e290f2b7be4a94d2820c7e728 /src/lib/merchant_api_merchant_get_order.c
parent58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a (diff)
downloadmerchant-534edf2d0fc0e2a03736b9251703bad2ffaf14f7.tar.gz
merchant-534edf2d0fc0e2a03736b9251703bad2ffaf14f7.tar.bz2
merchant-534edf2d0fc0e2a03736b9251703bad2ffaf14f7.zip
gateway timeout is not really a protocol violation
Diffstat (limited to 'src/lib/merchant_api_merchant_get_order.c')
-rw-r--r--src/lib/merchant_api_merchant_get_order.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c
index 0bb6b6c4..167e46be 100644
--- a/src/lib/merchant_api_merchant_get_order.c
+++ b/src/lib/merchant_api_merchant_get_order.c
@@ -400,6 +400,14 @@ handle_merchant_order_get_finished (void *cls,
NULL);
TALER_MERCHANT_merchant_order_get_cancel (omgh);
return;
+ case MHD_HTTP_GATEWAY_TIMEOUT:
+ hr.ec = TALER_JSON_get_error_code (json);
+ hr.hint = TALER_JSON_get_error_hint (json);
+ omgh->cb (omgh->cb_cls,
+ &hr,
+ NULL);
+ TALER_MERCHANT_merchant_order_get_cancel (omgh);
+ return;
default:
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);