mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
i2p.streaming.maxConcurrentStreams I2CP param
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user