[Rxtx] RXTX serial port read() returns -1 unexpectedly and then blocks forever on close()

Michael Erskine msemtd at googlemail.com
Thu Mar 3 02:50:20 MST 2011


So if -1 is unexpectedly returned from read, and we have demonstrated
that your USB-serial adapter can actually causes this to happen in
RXTX, why not just ignore the -1 value? What happens when you try
this? As for a hang on close, are your closing your port from within
your serial event handler? I know that this can cause some serious
problems.

Regards,
Michael Erskine.



More information about the Rxtx mailing list