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.

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 '' | gi torrent
    <url type="bittorrent" preference="100">magnet:?

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.
- 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.
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