Fix MRP baseTimeout calculation for LIT (#37696)
* 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>