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

silent panic if twincat restarts mid-read #18

Closed
chammel4 opened this issue Jun 13, 2023 · 3 comments
Closed

silent panic if twincat restarts mid-read #18

chammel4 opened this issue Jun 13, 2023 · 3 comments

Comments

@chammel4
Copy link

chammel4 commented Jun 13, 2023

I'm finding that if a twincat restart completes (not sure yet exactly at which state transition the problem occurs) during device.get_state() or ads::Handle.read(), or ads::Handle::new(), the call never returns with a Result<> - this leads me to believe something in the background silently panics.

Is there something you're aware of that can be monitored to explicitly avoid this scenario? or otherwise, suggestions for where this silent panic may be taking place?

Thanks!

@birkenfeld
Copy link
Owner

Are you creating the client with Timeouts::none()? It is recommended to use a timeout to avoid this.

@chammel4
Copy link
Author

good call, kind sir! That took care of it - now nicely riding through TC restarts. I didn't realize I had used Timeouts::none

@chammel4
Copy link
Author

nothing to be done - Timeouts::none was erroneously used

@chammel4 chammel4 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2023
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

No branches or pull requests

2 participants