Commit 6067f926 authored by jan.koester's avatar jan.koester
Browse files

test fixed

parent 7b75eaaf
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <mutex>
#include <sstream>
#include <random>
#include <cstdlib>

#include "connection.h"
#include "eventapi.h"
@@ -217,7 +218,14 @@ int main() {
    std::cout << "=== QUIC Concurrent Connections Stress Test ===" << std::endl;

    const int kQuicPort = 19611;
    const int kNumClients = 24;
    // QUIC_TEST_CLIENTS: override the concurrent client count (default 24) to help
    // distinguish genuine core-count contention from a fixed per-connection issue --
    // see [[project_proxyplus_full_wedge_20260816]].
    int kNumClients = 24;
    if (const char* envClients = std::getenv("QUIC_TEST_CLIENTS")) {
        int parsed = std::atoi(envClients);
        if (parsed > 0) kNumClients = parsed;
    }
    const int kRounds = 3;

    x509cert cert;