Skip to content
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

[CP][1.4] Fix MRP baseTimeout calculation for LIT (#37696) #38062

Merged

Conversation

yunhanw-google
Copy link
Contributor

CP #37696 to 1.4 branch

Testing

local run

* Fix MRP baseTimeout calculation when it is possible the other end fall asleep

* use min(SAI, SII) for mrp timeout when clock runs into idle

* Restyled by clang-format

* update mrp calculation

-- Use 15 seconds to determine whether device is in LIT mode, then if
yes, set the timeout base as SAI if GetRemoteMRPConfig().mIdleRetransTimeout.count() > sitIcdSlowPollMaximum.count()

* Address comments

* address comments

* Restyled by whitespace

* address comments

* Restyled by whitespace

* Restyled by clang-format

* Update src/transport/UnauthenticatedSessionTable.h

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/transport/Session.h

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/protocols/secure_channel/CASESession.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/transport/SecureSession.h

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/protocols/secure_channel/CASESession.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/app/ReadClient.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/messaging/ReliableMessageProtocolConfig.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/messaging/ReliableMessageProtocolConfig.h

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* address comments

* address comments

* update true isFirstMessageOnExchange for all ComputeRoundTripTimeout caller

* Restyled by whitespace

* Restyled by clang-format

* fix compilation error

* address comments

* cleanup

* add parameter isFirstMessageOnExchange in GetMessageReceiptTimeout

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
@andy31415 andy31415 merged commit 5fd234d into project-chip:v1.4-branch Mar 20, 2025
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants