From a9f01707ad64fc554077ca109ba03128ed8294be Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Sep 2015 10:43:22 +0200 Subject: add option -C to force closing of connections --- src/mint/taler-mint-httpd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mint/taler-mint-httpd.c') diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c index 86d20fdb..55ecd58d 100644 --- a/src/mint/taler-mint-httpd.c +++ b/src/mint/taler-mint-httpd.c @@ -44,6 +44,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) */ @@ -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}, -- cgit v1.2.3