Commit Graph

12 Commits

Author SHA1 Message Date
Justin Luth
e04f86b449 Fix bug 11567 updxlrator: don't prematurely release lock file
With Microsoft's new style of downloading updates,
where portions of a patch are requested multiple times per second,
it has become extremely common for downloads to reach > 100%.
Due to an early unlinking of the "lock" file, there is a big window of
opportunity (between the unlink and wget actually saving some data)
for multiple download/wget threads to start, adding to the same file.
So not only is bandwidth wasted by duplicate downloads running
simultaneously, but the resulting file is corrupt anyway.

The problem is noticed more often by low bandwidth users
(who need the benefits of updxlrator the most)
because then wget's latency is even longer, creating
a very wide window of opportunity.

Ultimately, this needs something like "flock", where the
file is set and tested in one operation. But for now,
settle with the current test / create lock solution, and
just stop unnecessarily releasing the lock.

Since the file already exists as a lock when wget starts,
wget now must ALWAYS run with --continue, which
works fine on a zero-sized file.

Signed-off-by: Justin Luth  <jluth@mail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-07 19:49:53 +00:00
Alf Høgemark
f00699e8bb Change case of the unit "bit" from "Bit" to "bit" in web UI
The correct case for "kilobit" is "kilobit", not "kiloBit".
And the same applies for Mbit, Gbit etc.
Reference is https://en.wikipedia.org/wiki/Kilobit

This commit changes the texts used in the web UI, so
that it correctly displays as "bit", "kbit", "Mbit" etc.

This fixes bugzilla item 10918.

Signed-off-by: Alf Høgemark <alf@i100.no>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-07-20 16:46:23 +01:00
Michael Tremer
a19f33961c update accelerator: Don't change owner of ALL files in cache.
When a file has been downloaded, all files in the update accelerator
cache directory have been chowned which causes huge IO load.
It is only required to set permissions that members of the group
can delete the files (purge function on the web user interface).

Changing the owner is completely unnecessary as only the squid
user needs write access and the web server is able to deliver
any file in the update cache anyways.
2013-01-26 19:31:58 +01:00
Stefan Schantl
68e2d326ed updxlerator: Disable call of chmod on downloader.
Disable the call of chmod after downloading a file. This is not woking because of different
owner's and only flushes the log files.

Fixes #10088.
2012-12-19 20:47:07 +01:00
maniacikarus
f17e1488a1 Disabled cryptsetup
2nd try to fix updx bug
2009-05-15 18:07:28 +02:00
maniacikarus
2b5b6b9e75 Tried to fix updx cache permissions 2009-05-08 11:48:20 +02:00
maniacikarus
4f4092e3dc Updated updxlrator to latest stable 2009-02-09 18:09:07 +01:00
Maniacikarus
c69191276c Finaly the Updbooster should work now 2008-09-14 13:22:55 +02:00
Maniacikarus
0a63839688 Upgrade updbooster to xlrator 2.0 added to core 2008-09-03 20:17:23 +02:00
maniacikarus
381f2e7111 Moved updbooster cache files to a larger partition
Added changes to the first core update to avoid full root partitions


git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1113 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-12-02 10:15:52 +00:00
ms
5b2a12ff8a Am Pakfire weitergearbeitet.
CGI erweitert und mit neuen Funktionen versehen.
Paketformat grundlegend geaendert.
UpdateBooster gefixt.
Avira+Avast als Updatequelle eingefuegt.
VPN-Watch ins log.dat.
DHCP-Server startet nach der Installation.
Einen String im Installer verschoenert :D


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@639 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-19 18:40:52 +00:00
ms
46c01c0912 Updatexlrator (not tested yet)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@421 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-02-15 21:26:14 +00:00