i2p.streaming.maxConcurrentStreams I2CP param

This commit is contained in:
orignal 2024-11-11 13:41:27 -05:00
parent dbef3fe9d2
commit 2778b092e3
5 changed files with 11 additions and 7 deletions

View file

@ -1705,9 +1705,9 @@ namespace stream
DeletePacket (packet); // drop it, because previous should be connected
return;
}
if (m_IncomingStreams.size () > MAX_NUM_INCOMING_STREAMS) // TODO: configurable
if ((int)m_Streams.size () > m_Owner->GetStreamingMaxConcurrentStreams ())
{
LogPrint(eLogWarning, "Streaming: Number of incoming streams exceeds ", MAX_NUM_INCOMING_STREAMS);
LogPrint(eLogWarning, "Streaming: Number of streams exceeds ", m_Owner->GetStreamingMaxConcurrentStreams ());
DeletePacket (packet);
return;
}