correct buffer size for fragments of SessionConfirmed

This commit is contained in:
orignal 2022-07-12 12:17:58 -04:00
parent f1d3d6a7b5
commit 0c34189d94
3 changed files with 21 additions and 12 deletions

View file

@ -190,10 +190,13 @@ namespace transport
int numResends = 0;
};
struct HandshakePacket: public SentPacket
struct HandshakePacket
{
Header header;
uint8_t headerX[48]; // part1 for SessionConfirmed
uint8_t payload[SSU2_MAX_PACKET_SIZE*2];
size_t payloadSize = 0;
uint32_t nextResendTime = 0; // in seconds
};
typedef std::function<void ()> OnEstablished;