fix(eventsub): check keepalive (#6058)

This commit is contained in:
nerix
2025-03-09 21:32:49 +01:00
committed by GitHub
parent 673ce8eecf
commit 9124c68278
8 changed files with 224 additions and 148 deletions
@@ -171,12 +171,16 @@ void BM_ParseAndHandleMessages(benchmark::State &state)
auto messages = readMessages();
std::unique_ptr<Listener> listener = std::make_unique<NoopListener>();
boost::asio::io_context ioc;
boost::asio::ssl::context ssl(
boost::asio::ssl::context::method::tls_client);
Session sess(ioc, ssl, std::move(listener));
for (auto _ : state)
{
for (const auto &msg : messages)
{
boost::system::error_code ec = handleMessage(listener, msg);
boost::system::error_code ec = sess.handleMessage(msg);
assert(!ec);
}
}