Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.h
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2021-03-28 02:30:51 -0700
committerAllan McRae <allan@archlinux.org>2021-04-07 22:33:52 +1000
commit4bf7aa119d7fc2ace226439407169884e07dbc88 (patch)
tree627597ef79d71b27bedd2f3194effebeae2050e1 /lib/libalpm/handle.h
parentbdf6aa3fb757a2363a4e708174b7d23a4997763d (diff)
skip servers with too many errors
Keep track of errors from servers so that bad ones can be skipped once a threshold is reached. Key the error tracking off the hostname because hosts may serve multiple repos under different url's and errors are likely to be host-wide. Implements: FS#29293. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.h')
-rw-r--r--lib/libalpm/handle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h
index 2ebaafb2..2d8d0f9e 100644
--- a/lib/libalpm/handle.h
+++ b/lib/libalpm/handle.h
@@ -60,6 +60,7 @@ struct __alpm_handle_t {
#ifdef HAVE_LIBCURL
/* libcurl handle */
CURLM *curlm;
+ alpm_list_t *server_errors;
#endif
unsigned short disable_dl_timeout;