[pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-06 Thread Nathan Aclander
New ConnectionTimeout variable sets the amount of time trying to connect to a repository, before timing out and trying the next one. Signed-off-by: Nathan Aclander --- doc/pacman.conf.5.asciidoc | 3 +++ etc/pacman.conf.in | 1 + lib/libalpm/alpm.h | 3 +++ lib/libalpm/dload.c

Re: [pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-06 Thread Allan McRae
On 7/4/19 7:47 am, Nathan Aclander wrote: > New ConnectionTimeout variable sets the amount of time trying to connect > to a repository, before timing out and trying the next one. > > Signed-off-by: Nathan Aclander We currently have the ability to wait 10 seconds or forever. I don't think more f

Re: [pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-06 Thread Nathan Aclander
I'm fairly new to using git send-email, so I wasn't sure how to add an explanation to the patch while cleanly separating it from the git commit message. I can speak more to why I found it useful. While I was traveling, certain mirrors became unreachable, or extremely slow. I had to wait 10 secon

Re: [pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-07 Thread Andrew Gregory
On 04/06/19 at 04:43pm, Nathan Aclander wrote: > > I'm fairly new to using git send-email, so I wasn't sure how to add an > explanation to the patch while cleanly separating it from the git commit > message. I can speak more to why I found it useful. Use --annotate and put comments you don't want

Re: [pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-07 Thread Maarten de Vries
On Sun, 7 Apr 2019 at 21:02, Andrew Gregory wrote: > > On 04/06/19 at 04:43pm, Nathan Aclander wrote: > > Using this patch seemed more usable for me than to having to comment out > > mirrors manually depending my network conditions. Are you concerned that > > having this parameter be tunable would

Re: [pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-07 Thread Nathan Aclander
> On 04/06/19 at 04:43pm, Nathan Aclander wrote: >> >> I'm fairly new to using git send-email, so I wasn't sure how to add an >> explanation to the patch while cleanly separating it from the git commit >> message. I can speak more to why I found it useful. > > Use --annotate and put comments you d

Re: [pacman-dev] [PATCH] Add config var to limit repo connection timeout

2019-04-07 Thread Nathan Aclander
Maarten de Vries writes: > I ran into the same objections when I wanted to expose a curl option > (in my case for client certificate authentication). But maintaining a > patched pacman seemed like too much long-term work, so instead I made > curl-inject-opt [1], a program using LD_PRELOAD to injec