From a2f10eed677861dfdb4a158c456a5e39302fe96e Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Thu, 7 Jan 2021 13:11:02 -0600 Subject: uhd: Check for overflow after timeout buff read Error processing has been moved to another thread, so it's possible that consecutive recv calls may miss the signalling that an overflow occurred. We have no guarantee that the flag had been set by the time the second recv call to find the errors occurs. This adds another check for an overflow after calling _get_aligned_buffs with a min 1ms timeout. Hopefully this is long enough for the error to propogate, but it's not guaranteed. Signed-off-by: Steven Koo --- host/lib/include/uhdlib/transport/rx_streamer_impl.hpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'host/lib/include/uhdlib/transport/rx_streamer_impl.hpp') diff --git a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp index f664eb68f..ce66d2ccb 100644 --- a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp +++ b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp @@ -136,11 +136,6 @@ public: return 0; } - if (nsamps_per_buff == 0) { - metadata.reset(); - return 0; - } - const int32_t timeout_ms = static_cast(timeout * 1000); detail::eov_data_wrapper eov_positions(metadata); -- cgit v1.2.3