Loading test/idle_reaper_test.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
test/idle_reaper_test.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading