mblaha / rpms / dnf

Forked from rpms/dnf 5 years ago
Clone
Blob Blame History Raw
From f676801b93c6a3b9261e9524f8da249bd341e2a8 Mon Sep 17 00:00:00 2001
From: Michal Luscon <mluscon@redhat.com>
Date: Tue, 9 Jun 2015 15:15:30 +0200
Subject: [PATCH 1/3] conf: change minrate threshold to librepo default
 (RhBug:1212320)

---
 dnf/yum/config.py | 2 +-
 doc/conf_ref.rst  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dnf/yum/config.py b/dnf/yum/config.py
index 1be7167..803eb3b 100644
--- a/dnf/yum/config.py
+++ b/dnf/yum/config.py
@@ -772,7 +772,7 @@ class YumConf(BaseConfig):
     enablegroups = BoolOption(True)
 
     bandwidth = BytesOption(0)
-    minrate = BytesOption(0)
+    minrate = BytesOption(1000)
     ip_resolve = CaselessSelectionOption(
             allowed=('ipv4', 'ipv6', 'whatever'),
             mapper={'4': 'ipv4', '6': 'ipv6'})
diff --git a/doc/conf_ref.rst b/doc/conf_ref.rst
index 0dbf87e..958e9fd 100644
--- a/doc/conf_ref.rst
+++ b/doc/conf_ref.rst
@@ -294,7 +294,7 @@ configuration.
 ``minrate``
     storage size
 
-    This sets the low speed threshold in bytes per second. If the server is sending data at the same or slower speed than this value for at least :ref:`timeout option <timeout-label>` seconds, DNF aborts the connection. The default is 0. Valid units are 'k', 'M', 'G'.
+    This sets the low speed threshold in bytes per second. If the server is sending data at the same or slower speed than this value for at least :ref:`timeout option <timeout-label>` seconds, DNF aborts the connection. The default is 1000. Valid units are 'k', 'M', 'G'.
 
 ``proxy``
     string
-- 
2.4.2