-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chip-tool] Chip tool event subscriptions times out #17764
Comments
Hi @isiu-apple could you also try to use gdb to run this command, and dump the backtrace, the crash may be another different issue. from the log, the subscription has been established, looks good for a period, then server seems lose the connection to client for unknown reason, it go through mrp restransmission |
Discussed this issue with @bzbarsky-apple and found that Chiptool is timing out after the default of 30 seconds. If I pass in the max value for the optional
@vivien-apple, any suggestions on what to do about this and whether event subscriptions should run forever with no default timeout? |
Actually, even with
Issue 17764 - Chiptool with timeout.txt |
Same subscription liveness timeout issue even in interactive mode:
|
Those new logs show us setting up a subscription with min-interval 5, max-interval 10. Then on the server we have, toward the end:
So we sent a report, got the expected status response. Then after 5 seconds the min interval has passed and we unblock reporting. Then 1304 (!) seconds are claimed to pass before our 10s timer fires? At that point we go head and send another data report, get an ack (that's the "Received message of type 0x10 with protocolId (0, 0)") but no status response. Then another 12 seconds later we decided that we have timed out and killed the subscription. On the client side, we have:
So we got the report data that was the next-to-last one the server sent us. We sent a response. Then we got nothing for 1309 s (!) and decided we have timed out. Soon after that we get that last data report and ack it, but we are already shutting down at that point. So did 20-some minutes really pass there? Or was there some sort of clock adjustment that happened (which should not matter, if we are using monotonic clocks), or the device(s) involved going to sleep or something? |
Okay, yes it's likely the laptop going to sleep then. I left the test running and then came back to check on it after a while each time to see if there were any errors or was running fine. I tried again monitoring it the whole time and I don't see the liveness error anymore. |
The correct behaviour is to run |
Closing this ticket because event subscriptions work without timeout crash when run in interactive mode. Created #17847 to track updating documentation to reflect chiptool timeout behavior. |
Problem
When subscribing to events using chip tool, the command times out.
Proposed Solution
Chip tool event subscriptions should work without timing out.
Issue 17764 - Chiptool.txt
Issue 17764 - OTA-P.txt
Issue 17764 - OTA-R.txt
The text was updated successfully, but these errors were encountered: