lower limit to 25ms

pull/935/head
Jeff Becker 5 years ago committed by Jason Rhinelander
parent 5924a2cec0
commit a2fc35a7aa

@ -32,6 +32,13 @@ namespace llarp
m_NetworkToUserPktQueue.Process(send);
}
bool
TunEndpoint::ShouldFlushNow(llarp_time_t now) const
{
static constexpr llarp_time_t FlushInterval = 25;
return now >= m_LastFlushAt + FlushInterval;
}
void
TunEndpoint::tunifTick(llarp_tun_io *tun)
{

@ -185,11 +185,7 @@ namespace llarp
protected:
bool
ShouldFlushNow(llarp_time_t now) const
{
static constexpr llarp_time_t FlushInterval = 50;
return now >= m_LastFlushAt + FlushInterval;
}
ShouldFlushNow(llarp_time_t now) const;
llarp_time_t m_LastFlushAt = 0;
using PacketQueue_t = llarp::util::CoDelQueue<

Loading…
Cancel
Save