Browse Source

drop earlier if delayed queue is semi-full

pull/2013/head
orignal 8 months ago
parent
commit
8f28cee32f
  1. 3
      libi2pd/Transports.cpp

3
libi2pd/Transports.cpp

@ -477,6 +477,9 @@ namespace transport
} }
} }
for (auto& it1: msgs) for (auto& it1: msgs)
if (sz > MAX_NUM_DELAYED_MESSAGES/2 && it1->onDrop)
it1->Drop (); // drop earlier because we can handle it
else
it->second.delayedMessages.push_back (it1); it->second.delayedMessages.push_back (it1);
} }
else else

Loading…
Cancel
Save