Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrero committed Oct 12, 2023
1 parent 060152e commit c5e9087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libostree/ostree-fetcher-soup.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ struct OstreeFetcher

GThread *session_thread;
ThreadClosure *thread_closure;
guint32 opt_max_outstanding_fetcher_requests;
};

enum
Expand Down
3 changes: 2 additions & 1 deletion src/libostree/ostree-fetcher-soup3.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ struct OstreeFetcher
char *user_agent;

guint64 bytes_transferred;
guint32 opt_max_outstanding_fetcher_requests;
};

enum
Expand Down Expand Up @@ -691,7 +692,7 @@ create_soup_session (OstreeFetcher *self)
const char *user_agent = self->user_agent ?: OSTREE_FETCHER_USERAGENT_STRING;
SoupSession *session = soup_session_new_with_options (
"user-agent", user_agent, "timeout", 60, "idle-timeout", 60, "max-conns-per-host",
_OSTREE_MAX_OUTSTANDING_FETCHER_REQUESTS, NULL);
self->opt_max_outstanding_fetcher_requests, NULL);

/* SoupContentDecoder is included in the session by default. Remove it
* if gzip compression isn't in use.
Expand Down

0 comments on commit c5e9087

Please sign in to comment.