Loading res_cache.cpp +23 −24 Original line number Original line Diff line number Diff line Loading @@ -1284,8 +1284,8 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query, if (!cache_has_pending_request_locked(cache, &key, true)) { if (!cache_has_pending_request_locked(cache, &key, true)) { return RESOLV_CACHE_NOTFOUND; return RESOLV_CACHE_NOTFOUND; } } else { LOG(INFO) << __func__ << ": Waiting for previous request"; LOG(INFO) << __func__ << ": Waiting for previous request"; // wait until (1) timeout OR // wait until (1) timeout OR // (2) cv is notified AND no pending request matching the |key| // (2) cv is notified AND no pending request matching the |key| Loading @@ -1311,7 +1311,6 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query, return RESOLV_CACHE_NOTFOUND; return RESOLV_CACHE_NOTFOUND; } } } } } now = _time_now(); now = _time_now(); Loading Loading
res_cache.cpp +23 −24 Original line number Original line Diff line number Diff line Loading @@ -1284,8 +1284,8 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query, if (!cache_has_pending_request_locked(cache, &key, true)) { if (!cache_has_pending_request_locked(cache, &key, true)) { return RESOLV_CACHE_NOTFOUND; return RESOLV_CACHE_NOTFOUND; } } else { LOG(INFO) << __func__ << ": Waiting for previous request"; LOG(INFO) << __func__ << ": Waiting for previous request"; // wait until (1) timeout OR // wait until (1) timeout OR // (2) cv is notified AND no pending request matching the |key| // (2) cv is notified AND no pending request matching the |key| Loading @@ -1311,7 +1311,6 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query, return RESOLV_CACHE_NOTFOUND; return RESOLV_CACHE_NOTFOUND; } } } } } now = _time_now(); now = _time_now(); Loading