gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: clarify documentation for #7074


From: gnunet
Subject: [taler-anastasis] branch master updated: clarify documentation for #7074
Date: Fri, 31 Dec 2021 12:29:59 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 33152ae  clarify documentation for #7074
33152ae is described below

commit 33152ae6d820ccf638498ddf264e011540e419a7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Dec 31 12:29:57 2021 +0100

    clarify documentation for #7074
---
 contrib/gana                                | 2 +-
 doc/sphinx/reducer.rst                      | 2 +-
 src/restclient/anastasis_api_policy_store.c | 4 ++++
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index b0dd85e..ecb597d 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit b0dd85e8187f33a1f92dd5eb31082050d333e168
+Subproject commit ecb597d6fb23e18a282059791c49716aa8ffd8cb
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:
 
 **poll:**
 
-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:
+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:
 
 .. code-block:: json
 
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,
     ud.us = ANASTASIS_US_PAYMENT_REQUIRED;
     ud.details.payment.payment_request = pso->pay_uri;
     break;
+  case MHD_HTTP_REQUEST_TIMEOUT:
+    ud.us = ANASTASIS_US_CLIENT_ERROR;
+    ud.ec = TALER_EC_ANASTASIS_PAYMENT_GENERIC_TIMEOUT;
+    break;
   case MHD_HTTP_PAYLOAD_TOO_LARGE:
     ud.us = ANASTASIS_US_CLIENT_ERROR;
     ud.ec = TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]