magnet links can prevent aria2c from using mirrors #73

Closed
poeml opened this Issue Jun 5, 2015 · 0 comments

1 participant

@poeml
Owner
                                                                                [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue73

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

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
magnet:?
xt=urn:btih:4461bb4ddc6a5115509763128050cb785c9267a9&xt=urn:md5:22930a5987ac
b08699976c28eb50fe82&xl=4451479&dn=flash-player-10.0.32.18_10.1.85.3-
3.1.1_0.1.1.i586.delta.rpm&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

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.

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.

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.
History
         Date         User  Action             Args
2010-09-25 21:31:55 poeml set    status: chatting -> resolved
                                   messages: + msg295
2010-09-25 02:38:10 poeml set    status: unread -> chatting
                                   messages: + msg289
2010-09-23 16:29:26 poeml create

(end of migrated issue)
@poeml poeml added bug resolved labels Jun 5, 2015
@poeml poeml closed this Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment