Skip to content

Commit

Permalink
pull: Lower max concurrent HTTP requests to 2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cgwalters committed Oct 2, 2023
1 parent 8c25452 commit dbe16fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libostree/ostree-repo-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbe16fe

Please sign in to comment.