Skip to content

Conversation

@avinxshKD
Copy link

The retry loop in concore_read.m had no max retry limit and no error handling around file operations. If a file stayed empty or fopen failed during retries, the loop would either hang forever or crash the whole function.

Added a 5-retry cap (matching the Python implementation) and wrapped the retry loop body in try-catch to handle file errors gracefully. Falls back to the default value if retries are exhausted.

Fixes #239

@avinxshKD
Copy link
Author

@pradeeban Hey again, the test failures aren't related to this change. This PR only modifies concore_read.m (MATLAB file) , thankss

@pradeeban pradeeban merged commit 5612cfe into ControlCore-Project:dev Feb 11, 2026
1 of 6 checks passed
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