mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 17:20:20 -04:00
Add aggressive restrictions to pre-handshake p2p buffer limit
This commit is contained in:
parent
a1eca8ca7e
commit
61b6e4cc67
10 changed files with 40 additions and 11 deletions
|
@ -443,7 +443,7 @@ namespace levin
|
|||
zone->p2p->foreach_connection([txs, now, &zone, &source, &in_duration, &out_duration, &next_flush] (detail::p2p_context& context)
|
||||
{
|
||||
// When i2p/tor, only fluff to outbound connections
|
||||
if (source != context.m_connection_id && (zone->nzone == epee::net_utils::zone::public_ || !context.m_is_income))
|
||||
if (context.handshake_complete() && source != context.m_connection_id && (zone->nzone == epee::net_utils::zone::public_ || !context.m_is_income))
|
||||
{
|
||||
if (context.fluff_txs.empty())
|
||||
context.flush_time = now + (context.m_is_income ? in_duration() : out_duration());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue