add reachability

This commit is contained in:
Konstantin Käfer
2014-09-29 14:02:42 +02:00
parent 135f68e249
commit 9e44c0eae8
13 changed files with 713 additions and 5 deletions

View File

@@ -89,4 +89,16 @@ void FileSource::prepare(std::function<void()> fn) {
}
}
void FileSource::retryAllPending() {
assert(thread_id == uv_thread_self());
util::ptr<BaseRequest> request;
for (const std::pair<std::string, std::weak_ptr<BaseRequest>> &pair : pending) {
if ((request = pair.second.lock())) {
request->retryImmediately();
}
}
}
}