https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
const auto current_cycle = close_cycle;
        ++close_cycle;
        close_cycle_time = now + close_interval;
        if (close_times.empty())
            return close_interval;
        auto & sessions_to_close = close_times.front();
        for (const auto & key : sessions_to_close)
        {
            const auto session = sessions.find(key);
            if (session != sessions.end() && session->second->close_cycle <= current_cycle)
            {
                if (!session->second.unique())
                {
                    
                    session->second->timeout = std::chrono::steady_clock::duration{0};
                    scheduleCloseSession(*session->second, lock);
                }
                else
                    sessions.erase(session);
            }
        }
        close_times.pop_front();
        return close_interval;
    }
    std::mutex mutex;
    std::condition_variable cond;
    std::atomic<bool> quit{false};
    ThreadFromGlobalPool thread{&NamedSessions::cleanThread, this};
};
void NamedSession::release()