Skip to content

Commit

Permalink
Merge pull request #17819 from jakesmith/HPCC-30361-HeartBeatPacketHe…
Browse files Browse the repository at this point in the history
…ader-serialization-bug

HPCC-30361 watchdog SocketEndpoint serialization fix

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Sep 26, 2023
2 parents 2b038c1 + 954a2a5 commit da0298e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions thorlcr/shared/thwatchdog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
struct HeartBeatPacketHeader
{
public:
// NB: packetSize and progressSize are back-patched and must remain at fixed offsets from the start of this struct
size32_t packetSize = 0; // used as validity check must be first
SocketEndpoint sender;
unsigned tick = 0; // sequence check
size32_t progressSize = 0; // size of progress data (following performance data)

unsigned tick = 0; // sequence check
SocketEndpoint sender;

public:
void serialize(MemoryBuffer & out) const
{
Expand Down

0 comments on commit da0298e

Please sign in to comment.