gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: add -I command line option


From: gnunet
Subject: [taler-exchange] branch master updated: add -I command line option
Date: Thu, 02 Dec 2021 13:31:22 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new bbdc7649 add -I command line option
bbdc7649 is described below

commit bbdc7649f7251c0ad16ebc4559f52378388c39fe
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Dec 2 13:31:20 2021 +0100

    add -I command line option
---
 src/exchange/taler-exchange-httpd.c | 9 +++++++++
 src/exchange/taler-exchange-httpd.h | 5 +++++
 2 files changed, 14 insertions(+)

diff --git a/src/exchange/taler-exchange-httpd.c 
b/src/exchange/taler-exchange-httpd.c
index 327bcd1e..ffd61873 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -127,6 +127,11 @@ static unsigned int connection_timeout = 30;
  */
 static int connection_close;
 
+/**
+ * -I command-line flag given?
+ */
+int TEH_check_invariants;
+
 /**
  * True if we should commit suicide once all active
  * connections are finished.
@@ -1903,6 +1908,10 @@ main (int argc,
                                "connection-close",
                                "force HTTP connections to be closed after each 
request",
                                &connection_close),
+    GNUNET_GETOPT_option_flag ('I',
+                               "check-invariants",
+                               "enable expensive invariant checks",
+                               &TEH_check_invariants),
     GNUNET_GETOPT_option_flag ('r',
                                "allow-reuse-address",
                                "allow multiple HTTPDs to listen to the same 
port",
diff --git a/src/exchange/taler-exchange-httpd.h 
b/src/exchange/taler-exchange-httpd.h
index 4f59a582..9a739501 100644
--- a/src/exchange/taler-exchange-httpd.h
+++ b/src/exchange/taler-exchange-httpd.h
@@ -144,6 +144,11 @@ extern const struct GNUNET_CONFIGURATION_Handle *TEH_cfg;
  */
 extern char *TEH_exchange_directory;
 
+/**
+ * -I command-line flag given?
+ */
+extern int TEH_check_invariants;
+
 /**
  * Are clients allowed to request /keys for times other than the
  * current time? Allowing this could be abused in a DoS-attack

-- 
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]