add -r option to exchange-httpd
This commit is contained in:
parent
5116186ec1
commit
4ceef77ae5
@ -66,6 +66,11 @@
|
|||||||
*/
|
*/
|
||||||
int TEH_allow_keys_timetravel;
|
int TEH_allow_keys_timetravel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should we allow two HTTPDs to bind to the same port?
|
||||||
|
*/
|
||||||
|
static int allow_address_reuse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The exchange's configuration (global)
|
* The exchange's configuration (global)
|
||||||
*/
|
*/
|
||||||
@ -1797,6 +1802,8 @@ run (void *cls,
|
|||||||
MHD_OPTION_NOTIFY_CONNECTION,
|
MHD_OPTION_NOTIFY_CONNECTION,
|
||||||
&connection_done,
|
&connection_done,
|
||||||
NULL,
|
NULL,
|
||||||
|
MHD_OPTION_LISTENING_ADDRESS_REUSE,
|
||||||
|
(unsigned int) allow_address_reuse,
|
||||||
MHD_OPTION_CONNECTION_TIMEOUT,
|
MHD_OPTION_CONNECTION_TIMEOUT,
|
||||||
connection_timeout,
|
connection_timeout,
|
||||||
MHD_OPTION_END);
|
MHD_OPTION_END);
|
||||||
@ -1839,6 +1846,10 @@ main (int argc,
|
|||||||
"connection-close",
|
"connection-close",
|
||||||
"force HTTP connections to be closed after each request",
|
"force HTTP connections to be closed after each request",
|
||||||
&connection_close),
|
&connection_close),
|
||||||
|
GNUNET_GETOPT_option_flag ('r',
|
||||||
|
"allow-reuse-address",
|
||||||
|
"allow multiple HTTPDs to listen to the same port",
|
||||||
|
&allow_address_reuse),
|
||||||
GNUNET_GETOPT_option_uint ('t',
|
GNUNET_GETOPT_option_uint ('t',
|
||||||
"timeout",
|
"timeout",
|
||||||
"SECONDS",
|
"SECONDS",
|
||||||
|
@ -766,6 +766,7 @@ TALER_TESTING_setup_with_exchange_cfg (
|
|||||||
"-a", /* some tests may need timetravel */
|
"-a", /* some tests may need timetravel */
|
||||||
"-c", setup_ctx->config_filename,
|
"-c", setup_ctx->config_filename,
|
||||||
#if GNU_PARALLEL
|
#if GNU_PARALLEL
|
||||||
|
"-r",
|
||||||
":::",
|
":::",
|
||||||
"-",
|
"-",
|
||||||
"-",
|
"-",
|
||||||
|
Loading…
Reference in New Issue
Block a user