libiio icon indicating copy to clipboard operation
libiio copied to clipboard

iio_buffer_refill hangs indefinitely without timeout after disconnection.

Open tyw996 opened this issue 3 months ago • 3 comments

I encountered an issue where calling iio_buffer_refill in a network backend thread works fine when connected, but it blocks indefinitely after disconnecting the Ethernet cable without timing out despite setting a timeout with iio_context_set_timeout(_ctx, 12000) and only returns an error after reconnecting. Why does this happen? I'm using version 0.26.

tyw996 avatar Oct 12 '25 08:10 tyw996

Hi @tyw996,

I will into it. It would help to know on which operating system you are seeing this issue. Thank you!

dNechita avatar Oct 13 '25 07:10 dNechita

I am using the Windows 11 operating system.

tyw996 avatar Oct 13 '25 13:10 tyw996

I'm using version 0.26.

And just to double check - that's 0.26 on both sides?

first five lines of iio_info should help replicate things.

-Robin

rgetz avatar Oct 17 '25 00:10 rgetz