Browse Source

never send Ack to HolePunch and PeerTest messages

gha
orignal 2 months ago
parent
commit
e1e530b4a9
  1. 2
      libi2pd/SSU2Session.cpp
  2. 1
      libi2pd/SSU2Session.h

2
libi2pd/SSU2Session.cpp

@ -1420,6 +1420,7 @@ namespace transport @@ -1420,6 +1420,7 @@ namespace transport
return false;
}
HandlePayload (payload, len - 48);
m_IsDataReceived = false;
// connect to Charlie
ConnectAfterIntroduction ();
@ -3113,6 +3114,7 @@ namespace transport @@ -3113,6 +3114,7 @@ namespace transport
return false;
}
HandlePayload (payload, len - 48);
SetIsDataReceived (false);
return true;
}

1
libi2pd/SSU2Session.h

@ -282,6 +282,7 @@ namespace transport @@ -282,6 +282,7 @@ namespace transport
RouterStatus GetRouterStatus () const;
void SetRouterStatus (RouterStatus status) const;
size_t GetMaxPayloadSize () const { return m_MaxPayloadSize; }
void SetIsDataReceived (bool dataReceived) { m_IsDataReceived = dataReceived; };
uint64_t GetSourceConnID () const { return m_SourceConnID; }
void SetSourceConnID (uint64_t sourceConnID) { m_SourceConnID = sourceConnID; }

Loading…
Cancel
Save