Commit 34502802 authored by jan.koester's avatar jan.koester
Browse files

msvc fix

parent 22f3451c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -238,7 +238,11 @@ int main() {
    // Must be set before the very first reapIdleConnections() call in the
    // process picks up (and caches) the sweep interval -- see the file
    // banner comment above for why this env var exists at all.
#ifdef _WIN32
    _putenv_s("NETPLUS_IDLE_SWEEP_INTERVAL_SECONDS", "1");
#else
    setenv("NETPLUS_IDLE_SWEEP_INTERVAL_SECONDS", "1", 1);
#endif

    bool pass1 = testIdleConnectionGetsClosed();
    bool pass2 = testDefaultDisabledLeavesConnectionAlive();