Skip to content

Commit

Permalink
Update src/app/ReadHandler.h
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
yunhanw-google and bzbarsky-apple authored Jan 14, 2022
1 parent 5186550 commit c508ca6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/ReadHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,10 @@ class ReadHandler : public Messaging::ExchangeDelegate
NodeId mInitiatorNodeId = kUndefinedNodeId;
AttributePathExpandIterator mAttributePathExpandIterator = AttributePathExpandIterator(nullptr);
bool mIsFabricFiltered = false;
// only for subscription, mHoldSync is set to true when trying to refresh subscription timer, which mean empty sync report
// cannot be sent during max interval. mHoldSync is set to false after max interval is passed, it means empty sync report is
// allowed to be generated.
// mHoldSync is used to prevent subscription empty report delivery while we
// are waiting for the max reporting interval to elaps. When mHoldSync
// becomes false, we are allowed to send an empty report to keep the
// subscription alive on the client.
bool mHoldSync = false;
uint32_t mLastWrittenEventsBytes = 0;
SubjectDescriptor mSubjectDescriptor;
Expand Down

0 comments on commit c508ca6

Please sign in to comment.