[llvm] Debuginfod failed-server cache (PR #74757)
Kevin Frei via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 14:51:25 PST 2023
================
@@ -194,6 +194,26 @@ Error StreamedHTTPResponseHandler::handleBodyChunk(StringRef BodyChunk) {
return Error::success();
}
+// Create a file cache entry to remember if a given server failed
+Expected<AddStreamFn> CheckServerFailure(FileCache &Cache, uint &Task,
+ StringRef ServerUrl) {
+ SmallString<96> CachedServerFailurePath(ServerUrl);
+ llvm::transform(CachedServerFailurePath, CachedServerFailurePath.begin(),
+ [&](char c) { return std::isalnum(c) ? c : '_'; });
+ CachedServerFailurePath.append(".failed");
+ return Cache(Task, CachedServerFailurePath, "");
----------------
kevinfrei wrote:
I'll move ahead with configuring the timeouts to use more appropriate defaults, while also exposing them as LLDB options. I'd like to see the user experience after fixing those to see if it's still as bad as I'm worried it will be :/
https://github.com/llvm/llvm-project/pull/74757
More information about the llvm-commits
mailing list