diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/daemon/HTTPServer.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/daemon/HTTPServer.cpp
--- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/daemon/HTTPServer.cpp 2026-08-24 22:19:53.000000000 +0000
+++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/daemon/HTTPServer.cpp 2026-08-24 22:16:50.000000000 +0000
@@ -67,7 +67,4 @@
}
- // a page must never hang on a service that is stopped or busy: the task
- // posted there would simply never run
- const int HTTP_PAGE_WAIT_TIMEOUT = 3; // in seconds
const char HTTP_PAGE_TUNNELS[] = "tunnels";
const char HTTP_PAGE_TRANSIT_TUNNELS[] = "transit_tunnels";
@@ -619,10 +616,5 @@
if (numECIESx25519Tags > 0) {
s << "ECIESx25519
\r\n" << tr("Incoming Tags") << ": " << numECIESx25519Tags << "
\r\n";
- auto eciesSessions = dest->GetECIESx25519SessionsList ();
- bool eciesReady = eciesSessions.wait_for (std::chrono::seconds (HTTP_PAGE_WAIT_TIMEOUT)) == std::future_status::ready;
- if (!eciesReady)
- s << tr("Sessions are not available") << "
\r\n";
- auto eciesSessionsList = eciesReady ? eciesSessions.get () :
- std::vector ();
+ auto eciesSessionsList = dest->GetECIESx25519SessionsList ().get ();
if (!eciesSessionsList.empty ())
{
@@ -1030,12 +1022,7 @@
{
i2p::transport::SSU2Server::SSU2Sessions sessions;
- auto ssu2SessionsReady = ssu2Server->GetSSU2Sessions (sessions);
- if (ssu2SessionsReady.wait_for (std::chrono::seconds (HTTP_PAGE_WAIT_TIMEOUT)) == std::future_status::ready)
- {
- if (!sessions.empty ())
- ShowTransportSessions (s, sessions, "SSU2");
- }
- else
- s << "SSU2: " << tr("Sessions are not available") << "
\r\n";
+ ssu2Server->GetSSU2Sessions (sessions).get ();
+ if (!sessions.empty ())
+ ShowTransportSessions (s, sessions, "SSU2");
}
}