You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix management of the mNumReportsInFlight count in reporting engine. (#24093)
If a ReadHandler failed out of SendReportData (e.g. because the session it's on
had been marked as defunct), we would increment mNumReportsInFlight and never
decrement it. After this happened CHIP_IM_MAX_REPORTS_IN_FLIGHT times (4 by
default), we would stop being able to send out any more data reports.
This situation is pretty easy to trigger as follows:
1. Use chip-tool to commission a device with node id 17.
2. Start chip-tool interactive mode.
3. Run the following commands in interactive mode:
onoff subscribe on-off 0 60 17 1 --keepSubscriptions true
onoff subscribe on-off 0 60 17 1 --keepSubscriptions true
onoff subscribe on-off 0 60 17 1 --keepSubscriptions true
onoff subscribe on-off 0 60 17 1 --keepSubscriptions true
onoff subscribe on-off 0 2 17 1 --keepSubscriptions true
4. quit interactive mode (Ctrl-C or quit() command).
5. Wait 60 seconds for all the subscriptions to error out.
After this the device will no longer respond with data reports to any
read or subscribe requests.
0 commit comments