-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
fix(transport): transferOut timeout must be inside try block #16861
Conversation
WalkthroughThe changes modify the Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (15)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this change is irrelevant as errors thrown from device.reset()
from inside 1000 ms timeout cannot be caught by synchronous try block.
Generally I think this could be job for As a quicker fix, could it be possible to abort the signal in the timeout, instead of directly calling |
022e194
to
5b7e26b
Compare
I am afraid that it can't be done easily. This signal that is used inside but what about simply attaching catch handler to device.reset? it should do the trick, shoudln't it? 5b7e26b. |
Yeah I thought that error from |
yes, that is exactly what happens |
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/13238919919 |
5b7e26b
to
616b173
Compare
argh face-palm me 🤕 🌴.
![image](https://private-user-images.githubusercontent.com/30367552/410165160-b79da230-7c46-448a-a93b-2419ce2574ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTg4ODAsIm5iZiI6MTczOTQ1ODU4MCwicGF0aCI6Ii8zMDM2NzU1Mi80MTAxNjUxNjAtYjc5ZGEyMzAtN2M0Ni00NDhhLWE5M2ItMjQxOWNlMjU3NGFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE0NTYyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiNjIwZGVjMWJhMzFhNGViNDk0M2U0Y2U1MjEyOGFiMWEzMWEzNmViZTlkYTEwMTI3NTAxZmQ5Y2ZkZjg2YzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9dJIqFaTcGOPLn-EkN_SXIaWZSq-9ScRnr3u2csEXj0)
in #16793 I made some last time changes - moving the timeout outside of try block so that I can clear it in finally easily which resulted in the error from device.reset not being catched