mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
get_xport_info() enumerates network interfaces via netlink/pyudev on every GetDeviceInfo call (~350ms, non-yielding). Since GetDeviceInfo is unclaimed and gets flooded during discovery, this could starve claimed RPCs past their short deadlines like 2 seconds. Cache the result for 10s (X400_XPORT_INFO_CACHE_TTL); it's stable per session, and init() drops the cache since IPs may change. This turns most GetDeviceInfo calls much faster. Add a dedicated lock for the xport_info_cache so concurrent GetDeviceInfo calls don't race on refresh/invalidations |
||
|---|---|---|
| .. | ||
| cmake/Modules | ||
| include | ||
| lib | ||
| python | ||
| systemd | ||
| tests | ||
| tools | ||
| .gitignore | ||
| CMakeLists.txt | ||