mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-31 14:11:53 +00:00
Client compatibility check more often
This commit is contained in:
parent
44b4fccefe
commit
d811ac47dc
@ -880,6 +880,8 @@ namespace stream
|
|||||||
numMsgs = m_NumPacketsToSend;
|
numMsgs = m_NumPacketsToSend;
|
||||||
if (m_RoutingSession)
|
if (m_RoutingSession)
|
||||||
{
|
{
|
||||||
|
m_IsJavaClient = m_RoutingSession->IsWithJava ();
|
||||||
|
if (m_IsJavaClient) m_MaxWindowSize = 64;
|
||||||
int numSentPackets = m_RoutingSession->NumSentPackets ();
|
int numSentPackets = m_RoutingSession->NumSentPackets ();
|
||||||
int numPacketsToSend = m_MaxWindowSize - numSentPackets;
|
int numPacketsToSend = m_MaxWindowSize - numSentPackets;
|
||||||
if (numPacketsToSend <= 0) // shared window is full
|
if (numPacketsToSend <= 0) // shared window is full
|
||||||
@ -1337,8 +1339,6 @@ namespace stream
|
|||||||
m_CurrentRemoteLease = routingPath->remoteLease;
|
m_CurrentRemoteLease = routingPath->remoteLease;
|
||||||
m_RTT = routingPath->rtt;
|
m_RTT = routingPath->rtt;
|
||||||
}
|
}
|
||||||
m_IsJavaClient = m_RoutingSession->IsWithJava ();
|
|
||||||
if (m_IsJavaClient) m_MaxWindowSize = 64;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user