[pacman-dev] [PATCH v6 1/1] Add configuration options for libcurl's "low speed" timeout

Christian Hesse list at eworm.de
Tue Aug 30 12:48:54 UTC 2016


Dave Reisner <d at falconindy.com> on Tue, 2016/08/30 08:46:
> On Tue, Aug 30, 2016 at 02:12:23PM +0200, Christian Hesse wrote:
> > From: Christian Hesse <mail at eworm.de>
> > 
> > Add LowSpeedLimit and LowSpeedTime configuration options to correspond
> > to libcurl's CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME options.
> > This allows, e.g., transfers behind corporate virus-scanning firewalls
> > to survive the delays. Increasing the timeout may not be desirable in
> > all situations; similarly, disabling the check prevents detection of
> > disappearing networks.  
> 
> FWIW, I'm strongly opposed to having a 1:1 mapping between pacman
> options and curl config options. Please look at the bigger picture --
> it's dead connection detection. We might reimplement that in the future
> in some other way (e.g. via the progress callback or by some other
> transfer library entirely).
> 
> To that end, I think it would be reasonable to add a boolean toggle for
> the dead connection detection (default on). The patch in its current
> state makes me rather itchy from an API perspective.

That is what my stupid-proxy patch does...
Now it is up to Allan to decide. ;)
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20160830/30d17a1b/attachment-0001.asc>


More information about the pacman-dev mailing list