diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-18 18:34:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-18 18:34:14 +0200 |
commit | 534edf2d0fc0e2a03736b9251703bad2ffaf14f7 (patch) | |
tree | 1ebe72b3cbaa939e290f2b7be4a94d2820c7e728 | |
parent | 58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a (diff) | |
download | merchant-534edf2d0fc0e2a03736b9251703bad2ffaf14f7.tar.gz merchant-534edf2d0fc0e2a03736b9251703bad2ffaf14f7.tar.bz2 merchant-534edf2d0fc0e2a03736b9251703bad2ffaf14f7.zip |
gateway timeout is not really a protocol violation
m--------- | contrib/merchant-backoffice | 0 | ||||
-rw-r--r-- | src/lib/merchant_api_merchant_get_order.c | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/contrib/merchant-backoffice b/contrib/merchant-backoffice -Subproject 1d7ee55ea115b91687c203a8f084ea852867b1f +Subproject 182cdfffa1d4b6f2bb3543d30cfa7509e73bda0 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); |