Browse Source

re-create ECIES session for follow-on packets

pull/2125/head
orignal 2 days ago
parent
commit
b80278421d
  1. 2
      libi2pd/Streaming.cpp

2
libi2pd/Streaming.cpp

@ -1116,7 +1116,7 @@ namespace stream
} }
if (!m_RoutingSession || m_RoutingSession->IsTerminated () || !m_RoutingSession->IsReadyToSend ()) // expired and detached or new session sent if (!m_RoutingSession || m_RoutingSession->IsTerminated () || !m_RoutingSession->IsReadyToSend ()) // expired and detached or new session sent
{ {
m_RoutingSession = m_LocalDestination.GetOwner ()->GetRoutingSession (m_RemoteLeaseSet, true, !m_IsIncoming); m_RoutingSession = m_LocalDestination.GetOwner ()->GetRoutingSession (m_RemoteLeaseSet, true, !m_IsIncoming || m_SequenceNumber > 1);
if (!m_RoutingSession) if (!m_RoutingSession)
{ {
LogPrint (eLogError, "Streaming: Can't obtain routing session, sSID=", m_SendStreamID); LogPrint (eLogError, "Streaming: Can't obtain routing session, sSID=", m_SendStreamID);

Loading…
Cancel
Save