aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-09-21 10:43:22 +0200
committerChristian Grothoff <christian@grothoff.org>2015-09-21 10:43:22 +0200
commita9f01707ad64fc554077ca109ba03128ed8294be (patch)
treea2dbd07b39e5a4a38db501050dbd2c01fd8f83ec /src/mint/taler-mint-httpd.c
parent49d8426cf444daaf97c195096c5f59bf010b16d0 (diff)
downloadexchange-a9f01707ad64fc554077ca109ba03128ed8294be.tar.xz
add option -C to force closing of connections
Diffstat (limited to 'src/mint/taler-mint-httpd.c')
-rw-r--r--src/mint/taler-mint-httpd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c
index 86d20fdba..55ecd58d2 100644
--- a/src/mint/taler-mint-httpd.c
+++ b/src/mint/taler-mint-httpd.c
@@ -45,6 +45,11 @@
char *TMH_mint_currency_string;
/**
+ * Should we return "Connection: close" in each response?
+ */
+int TMH_mint_connection_close;
+
+/**
* Base directory of the mint (global)
*/
char *TMH_mint_directory;
@@ -543,11 +548,13 @@ run_fake_client ()
"nc",
"localhost",
ports,
+ "-w", "30",
NULL)) &&
(0 != execlp ("ncat",
"ncat",
"localhost",
ports,
+ "-i", "30",
NULL)) )
{
fprintf (stderr,
@@ -614,6 +621,9 @@ main (int argc,
char *const *argv)
{
static const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ {'C', "connection-close", NULL,
+ "force HTTP connections to be closed after each request", 0,
+ &GNUNET_GETOPT_set_one, &TMH_mint_connection_close},
{'d', "mint-dir", "DIR",
"mint directory with configuration and keys for operating the mint", 1,
&GNUNET_GETOPT_set_filename, &TMH_mint_directory},