From 01e06eb715938b914c54123c21c7c7678e08ee02 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Aug 2021 08:24:59 +0200 Subject: -remove sessions also from auditor --- src/mhd/mhd_config.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mhd') diff --git a/src/mhd/mhd_config.c b/src/mhd/mhd_config.c index d6e1a25cf..0e9f2e088 100644 --- a/src/mhd/mhd_config.c +++ b/src/mhd/mhd_config.c @@ -255,6 +255,7 @@ TALER_MHD_open_unix_path (const char *unix_path, GNUNET_free (un); return -1; } + if (GNUNET_OK != GNUNET_NETWORK_socket_bind (nh, (void *) un, @@ -446,6 +447,18 @@ TALER_MHD_bind (const struct GNUNET_CONFIGURATION_Handle *cfg, freeaddrinfo (res); return -1; } + { + const int on = 1; + + if (GNUNET_OK != + GNUNET_NETWORK_socket_setsockopt (nh, + SOL_SOCKET, + SO_REUSEPORT, + &on, + sizeof(on))) + GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, + "setsockopt"); + } if (GNUNET_OK != GNUNET_NETWORK_socket_bind (nh, res->ai_addr, -- cgit v1.2.3