From a5d2d656c833f8638ccf3422b623258c37d1601d Mon Sep 17 00:00:00 2001 From: emanuel Date: Wed, 27 Jul 2022 17:16:07 +0100 Subject: [PATCH] Reduce tolling min pay period to 40s --- src/tpm.c | 2 +- src/tpm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tpm.c b/src/tpm.c index ede8741..08329c4 100644 --- a/src/tpm.c +++ b/src/tpm.c @@ -1291,7 +1291,7 @@ void tolling_info_free(tolling_info_t* ti) { } tlsc_t* tolling_tlsc_new(tolling_t* tolling, itss_epv_t* epv, uint8_t ipv6[16], uint16_t port) { - syslog_debug("[tolling] new tlsc , nconns=%d", tolling->protocol.c.tls.n_tlsc); + syslog_debug("[tolling] new tlsc, nconns=%d", tolling->protocol.c.tls.n_tlsc); if (tolling->protocol.c.tls.n_tlsc >= TOLLING_MAX_CONNS - 1) { return NULL; } diff --git a/src/tpm.h b/src/tpm.h index ead6753..119fc52 100644 --- a/src/tpm.h +++ b/src/tpm.h @@ -7,7 +7,7 @@ #include #define TOLLING_INFOS_MAX_LENGTH 16 -#define TOLLING_PAYMENT_MIN_PERIOD_MS 60000 +#define TOLLING_PAYMENT_MIN_PERIOD_MS 40000 #define TOLLING_MAX_CONNS 64 #define TOLLING_CONN_TIMEOUT_MS 10000