diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-31 12:29:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-31 12:29:57 +0100 |
commit | 33152ae6d820ccf638498ddf264e011540e419a7 (patch) | |
tree | f92412949f1d46b0082f530db8ea113b8a7d7bdb | |
parent | ce443bb4d4815ac79170b81cae74fc8b8030ea54 (diff) | |
download | anastasis-33152ae6d820ccf638498ddf264e011540e419a7.tar.gz anastasis-33152ae6d820ccf638498ddf264e011540e419a7.zip |
clarify documentation for #7074
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | doc/sphinx/reducer.rst | 2 | ||||
-rw-r--r-- | src/restclient/anastasis_api_policy_store.c | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/contrib/gana b/contrib/gana | |||
Subproject b0dd85e8187f33a1f92dd5eb31082050d333e16 | Subproject ecb597d6fb23e18a282059791c49716aa8ffd8c | ||
diff --git a/doc/sphinx/reducer.rst b/doc/sphinx/reducer.rst index b091c1d..589ee63 100644 --- a/doc/sphinx/reducer.rst +++ b/doc/sphinx/reducer.rst | |||
@@ -1694,7 +1694,7 @@ that applications must all handle. States other than ``solved`` are: | |||
1694 | 1694 | ||
1695 | **poll:** | 1695 | **poll:** |
1696 | 1696 | ||
1697 | With a ``poll`` transition, the application indicates that it wants to wait longer for one or more of the challenges that are in state ``authentication-timeout`` to possibly complete. While technically optional, the ``timeout`` argument should really be provided to enable long-polling, for example: | 1697 | With a ``poll`` transition, the application indicates that it wants to wait longer for one or more of the challenges that are awaiting some external authentication (state ``external-instructions``) or experienced some kind of timeout (state ``authentication-timeout``) to possibly complete. While technically optional, the ``timeout`` argument should really be provided to enable long-polling, for example: |
1698 | 1698 | ||
1699 | .. code-block:: json | 1699 | .. code-block:: json |
1700 | 1700 | ||
diff --git a/src/restclient/anastasis_api_policy_store.c b/src/restclient/anastasis_api_policy_store.c index 8e3c546..b709472 100644 --- a/src/restclient/anastasis_api_policy_store.c +++ b/src/restclient/anastasis_api_policy_store.c | |||
@@ -211,6 +211,10 @@ handle_policy_store_finished (void *cls, | |||
211 | ud.us = ANASTASIS_US_PAYMENT_REQUIRED; | 211 | ud.us = ANASTASIS_US_PAYMENT_REQUIRED; |
212 | ud.details.payment.payment_request = pso->pay_uri; | 212 | ud.details.payment.payment_request = pso->pay_uri; |
213 | break; | 213 | break; |
214 | case MHD_HTTP_REQUEST_TIMEOUT: | ||
215 | ud.us = ANASTASIS_US_CLIENT_ERROR; | ||
216 | ud.ec = TALER_EC_ANASTASIS_PAYMENT_GENERIC_TIMEOUT; | ||
217 | break; | ||
214 | case MHD_HTTP_PAYLOAD_TOO_LARGE: | 218 | case MHD_HTTP_PAYLOAD_TOO_LARGE: |
215 | ud.us = ANASTASIS_US_CLIENT_ERROR; | 219 | ud.us = ANASTASIS_US_CLIENT_ERROR; |
216 | ud.ec = TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT; | 220 | ud.ec = TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT; |