np43 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

implement safe open / timeout when opening a device #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What new feature(s) would you like to see included?

I am using a usb-to-serial multiplexer card and try to open the ports one
at a time. Due to driver issues, that is not always possible, and as such
may fail.

Is there a way to timeout the open method? The current behavior is that the
process is marked "uninterruptible" and eventually locks up the system. If
the device does not respond within due time (I don't know what would be
appropriate), couldn't the open just throw an exception and terminate?

Original issue reported on code.google.com by stephan....@gmail.com on 14 Jan 2010 at 6:24

GoogleCodeExporter commented 9 years ago
Which platform are you on, and which version of the code are you using?

Original comment by lst...@gmail.com on 28 Jan 2010 at 11:04

GoogleCodeExporter commented 9 years ago
I am using Linux (2.6.31) and qextserialport 1.1.

Original comment by stephan....@gmail.com on 28 Jan 2010 at 11:18

GoogleCodeExporter commented 9 years ago
Not sure - posix platforms simply use open(), so I'm not sure what would be 
locking up.  Perhaps you could 
provide a reduced/reproducible piece of code, or run it in the debugger to see 
what's going on?

Original comment by lst...@gmail.com on 10 Mar 2010 at 7:49

GoogleCodeExporter commented 9 years ago
My driver has a problem - seems unrelated to qextserialport. Please close the 
issue, 
sorry for the noise.

Original comment by stephan....@gmail.com on 10 Mar 2010 at 9:59

GoogleCodeExporter commented 9 years ago
Great - thanks.

Original comment by lst...@gmail.com on 10 Mar 2010 at 3:48