From dbe16fe716520de834ac9e15839e13f0767dfee9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 2 Oct 2023 17:01:09 -0400 Subject: [PATCH] pull: Lower max concurrent HTTP requests to 2 I believe this may help re-enabling the libcurl low-speed limit checks in the case where we have a full 8 HTTP requests outstanding with the remote server, but it's actually throttling us. In practice, we really don't need more than two. Experimenting with this using the builtin Go HTTP server, this actually seems to increase performance; but I get pretty wild timing variations overall. --- src/libostree/ostree-repo-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h index 0156a541a2..43152affcb 100644 --- a/src/libostree/ostree-repo-private.h +++ b/src/libostree/ostree-repo-private.h @@ -33,7 +33,7 @@ G_BEGIN_DECLS #define _OSTREE_SUMMARY_CACHE_DIR "summaries" #define _OSTREE_CACHE_DIR "cache" -#define _OSTREE_MAX_OUTSTANDING_FETCHER_REQUESTS 8 +#define _OSTREE_MAX_OUTSTANDING_FETCHER_REQUESTS 2 #define _OSTREE_MAX_OUTSTANDING_DELTAPART_REQUESTS 2 /* We want some parallelism with disk writes, but we also