-
Notifications
You must be signed in to change notification settings - Fork 322
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 timeout handling serial write #652
Conversation
A timeout happens when the number of written bytes is less than the requested number of bytes to be written. Signed-off-by: Dan Nechita <[email protected]>
All other error messages have this, except the ones that are now being fixes with this commit. Signed-off-by: Dan Nechita <[email protected]>
Don't we need to handle the error? Just printing something, and allowing a partial write to occur will confuse the system.,, |
When the timeout occurs, yes we print something but then we immediately return and provide the error code for the timeout. |
just returning in the middle - will leave the client/server in an unknown state (although that looks like what usb does); so maybe it is OK. when I test this, I get different results based on the random devices:
31 seconds it pretty long to time out?
seems more reasonable. |
I dug into this a little bit... This seems to be an issue in the FTDI kernel driver. there is no way to set the only suggestion was to have the close will probably need to be called in a separate thread... (which I'm not sure is worth the problem?) If we want to make serial scan work - it will be necessary.... |
Thanks for investigating things. I'm going to merge this. Also I've created an issue to track the 30 seconds timeout issue. |
No description provided.