libftdi Archives

Subject: Re: Asynchronous reading doesn't timeout

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: jry <jrysig@xxxxxxxxx>
Date: Tue, 08 Nov 2016 13:12:45 +0100
Hi Jan,

On Sunday, 6. November 2016 22:13:01 jry wrote:
> I have found strange behavior of ftdi_read_data_submit()
> and ftdi_transfer_data_done() while receiving data from FT245RL. When
> device returns less bytes than expected, ftdi_transfer_data_done() freezes
> infinitely. I would expect it will return after timeout. Am I using it
> wrong?
> 
> I have found similar old thread in mailing list archive:
> http://developer.intra2net.com/mailarchive/html/libftdi/2014/msg00001.html
> 
> I'm using latest libftdi 1.3.

perhaps attaching strace to the hanging process might shed some light on 
this. Or attach gdb and get a backtrace to see where it's stuck.

Cheers,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread