diff options
author | Lee Clagett <code@leeclagett.com> | 2020-12-29 19:58:53 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-12-17 00:36:10 +0000 |
commit | 61b6e4cc67abd61a0dbffe271ee3f355b2e772bc (patch) | |
tree | aa63b9684b9138a6f58f18678307d353aec67c10 /src/cryptonote_protocol/levin_notify.cpp | |
parent | Merge pull request #7221 (diff) | |
download | monero-61b6e4cc67abd61a0dbffe271ee3f355b2e772bc.tar.xz |
Add aggressive restrictions to pre-handshake p2p buffer limit
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_protocol/levin_notify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp index 21363972d..c23a4d2fe 100644 --- a/src/cryptonote_protocol/levin_notify.cpp +++ b/src/cryptonote_protocol/levin_notify.cpp @@ -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()); |