Skip to content

clamp connection timeout and fixed the comment - #748

Merged
xianshijing-lk merged 2 commits into
mainfrom
sxian/CLT-2132/fix_rpc_responseTimeout_comment_and_clamp_the_timeout
Oct 19, 2025
Merged

clamp connection timeout and fixed the comment#748
xianshijing-lk merged 2 commits into
mainfrom
sxian/CLT-2132/fix_rpc_responseTimeout_comment_and_clamp_the_timeout

Conversation

@xianshijing-lk

Copy link
Copy Markdown
Contributor

So the problem is that the performRpc is a public function, and we never sanity check if users provide values larger than the connection_timeout, which might cause unexpected behavior.

This PR fixes the comment and also clamp the connection response timeout if needed.

@ladvoc ladvoc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good! Two notes:

  • The build failure on Android is not related to this PR—I am investigating the cause
  • To make the format check pass, run cargo fmt and commit the changes

@xianshijing-lk
xianshijing-lk force-pushed the sxian/CLT-2132/fix_rpc_responseTimeout_comment_and_clamp_the_timeout branch from 87e9200 to 0563cda Compare October 19, 2025 03:11
@xianshijing-lk
xianshijing-lk merged commit 83bd7c7 into main Oct 19, 2025
19 checks passed
@xianshijing-lk
xianshijing-lk deleted the sxian/CLT-2132/fix_rpc_responseTimeout_comment_and_clamp_the_timeout branch October 19, 2025 03:58
@github-actions github-actions Bot mentioned this pull request Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants