Issue73

Title magnet links can prevent aria2c from using mirrors
Priority critical Status resolved
Superseder Nosy List poeml
Assigned To poeml Keywords torrents

Created on 2010-09-23.16:29:26 by poeml, last changed by poeml.

Messages
msg295 (view) Author: poeml Date: 2010-09-25.21:31:54
I have added the Apache config directive MirrorBrainMetalinkMagnetLinks which 
defaults to Off for the moment. If not set to On, the magnet links in Metalinks 
are suppressed. 

This makes the patch in the openSUSE buildservice package obsolete, and fixes 
the issue for the other platforms.

Fixed in trunk, and I'm going to roll a release soon. The fix will be in 2.13.3.

http://svn.mirrorbrain.org/viewvc/mirrorbrain?view=revision&revision=8164
mod_mirrorbrain:
- The Magnet links embedded in Metalinks could causes aria2c to wait a long
  time on P2P connections, and not try the listed mirrors anymore (issue #73).
  The links are no longer included for the moment, unless
  MirrorBrainMetalinkMagnetLinks On is set in the Apache configuration.
msg289 (view) Author: poeml Date: 2010-09-25.02:38:10
I'm not sure if the magnet links are broken - or what is the reason why aria2c 
tries only them and not one of all the mirrors, and neither the web seeds (which 
consist of mirrors as well).

I'm wondering whether the magnet links should get priority 99 (one less than the 
highest mirror), so a mirror is preferred or at least tried.
msg275 (view) Author: poeml Date: 2010-09-23.16:29:25
With 2.13.0, aria2c, as used with openSUSE, hangs when downloading via metalinks 
like this:

 % curl -s 'http://download.opensuse.org/update/11.2/rpm/i586/flash-player-
10.0.32.18_10.1.85.3-3.1.1_0.1.1.i586.delta.rpm.metalink' | gi torrent
    <url type="bittorrent" preference="100">magnet:?
xt=urn:btih:4461bb4ddc6a5115509763128050cb785c9267a9&amp;xt=urn:md5:22930a5987ac
b08699976c28eb50fe82&amp;xl=4451479&amp;dn=flash-player-10.0.32.18_10.1.85.3-
3.1.1_0.1.1.i586.delta.rpm&amp;as=http://download.opensuse.org/update/11.2/rpm/i
586/flash-player-10.0.32.18_10.1.85.3-3.1.1_0.1.1.i586.delta.rpm</url>

The magnet links have the same priority as the highest mirror, but aria2c 
doesn't use the mirrors in that case.

I have added nomagnets.patch to the openSUSE package as a workaround, to disable 
magnet links in Metalinks.
History
Date User Action Args
2010-09-25 21:31:55poemlsetstatus: chatting -> resolved
messages: + msg295
2010-09-25 02:38:10poemlsetstatus: unread -> chatting
messages: + msg289
2010-09-23 16:29:26poemlcreate