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

1
libi2pd/SSU2Session.h

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

Loading…
Cancel
Save