jbrzusto / librtlsdr

Software to turn the RTL2832U into an SDR (version for sensorgnomes)
GNU General Public License v2.0
0 stars 0 forks source link

rtl_tcp: use of gettimeofday causes spurious timeouts when system clock stepped by GPS #1

Closed jbrzusto closed 7 years ago

jbrzusto commented 7 years ago

This has been useful in finding some other bugs, as it lets me fake a devStalled condition by stepping the system clock 30 seconds into the future, but really, timeouts should use CLOCK_MONOTONIC for exactly that reason!