fix: all new connections were counted as rejected
from an earlier patch from a static analyzer... :(
@@ -6668,7 +6668,9 @@ static void drive_machine(conn *c) {
if (settings.maxconns_fast) {
STATS_LOCK();
reject = stats_state.curr_conns + stats_state.reserved_fds >= settings.maxconns - 1;
+ if (reject) {
stats.rejected_conns++;
+ }
STATS_UNLOCK();
} else {
reject = false;
