Opened 7 years ago

Last modified 7 years ago

#2975 new bug

Don't open connections to web seeds when not downloading

Reported by: Nemo_bis Owned by:
Priority: minor Milestone: needs verified
Component: Unknown Version: other (please specify)
Keywords: connections webseed Cc:

Description

I'm uploading/seeding a few torrents, which are available on the file system and on several web seeds (https://tools.wmflabs.org/dump-torrents/ ). I observe that whenever I restart deluged, or I add new torrents, TCP connections are opened towards the web seeds for a large portion of torrents (all the non-seeding ones? the checking ones? I'm not sure) and stay open for a while. 0 torrents are in "Downloading" state.

Disregarding the total number of torrents and connections (https://meta.wikimedia.org/wiki/Mirroring_Wikimedia_project_XML_dumps/Torrents/deluge/core.conf ), I don't understand why deluged would open a connection to a web seed in the first place when it doesn't need to download anything.

Whenever a local path was specified and the torrent has not been verified yet, the web seeds should be ignored. The web seeds should be checked/contacted only when the torrent is in downloading state.

Attachments (3)

deluged-tcp.txt.bz2 (44.9 KB) - added by Nemo_bis 7 years ago.
lsof -c deluged | grep TCP
deluge-info.1.txt.xz (224.0 KB) - added by Nemo_bis 7 years ago.
deluge-console "info -v" (part 1)
deluge-info.2.txt.xz (233.5 KB) - added by Nemo_bis 7 years ago.
deluge-console "info -v" (part 2)

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by Nemo_bis

lsof -c deluged | grep TCP

Changed 7 years ago by Nemo_bis

deluge-console "info -v" (part 1)

Changed 7 years ago by Nemo_bis

deluge-console "info -v" (part 2)

comment:1 Changed 7 years ago by Nemo_bis

Actually, from the attachments it looks like most/all web seeds are opened by torrents in error state, like:

Name: abwiki-20161220-pages-meta-current.xml.bz2
ID: 46ddb0b1b649a1f42abf5efd3a2f120caf5da66b
State: Error
Size: 51.9 KiB/1.1 MiB Ratio: 0.000
Seed time: 0 days 00:00:00 Active: 3 days 22:11:53
Tracker status: opentrackr.org: Announce OK
Progress: 4.45% [###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]
  ::Files
    abwiki-20161220-pages-meta-current.xml.bz2 (1.1 MiB) Progress: 3.34% Priority: Normal
  ::Peers
Seed    US      207.241.228.100:443     URL seed @ ia801900.us.archive.org (nginx/1.4.6 (Ubuntu))       0.0 KiB/s       0.0 KiB/s
Seed    US      208.80.154.11:443       URL seed @ dumps.wikimedia.org  0.0 KiB/s       0.0 KiB/s
Seed    US      207.241.227.40:443      URL seed @ ia601900.us.archive.org (nginx/1.4.6 (Ubuntu))       0.0 KiB/s       0.0 KiB/s
Seed    US      204.9.55.82:80  URL seed @ dumps.wikimedia.your.org (lighttpd)  0.0 KiB/s       0.0 KiB/s
Seed    SE      130.239.18.173:80       URL seed @ ftp.acc.umu.se       0.0 KiB/s       0.0 KiB/s
Seed    BR      200.236.31.1:80 URL seed @ wikipedia.c3sl.ufpr.br (Apache)      0.0 KiB/s       0.0 KiB/s

comment:2 Changed 7 years ago by Cas

This is something to do with libtorrent what version are you using?

comment:3 Changed 7 years ago by Nemo_bis

$ deluged --version deluged: 1.3.10 libtorrent: 0.16.18.0

comment:4 Changed 7 years ago by Cas

Can you test with libtorrent 1.0 as the that is current stable code.

comment:5 Changed 7 years ago by Nemo_bis

I'm trying:

$ sudo apt-get -t sid install libtorrent-rasterbar9 libboost-chrono1.62.0 libboost-random1.62.0 libboost-system1.62.0 libssl1.1 libstdc++6 gcc-6-base libboost-python1.62.0 $ deluged --version deluged: 1.3.10 libtorrent: 1.1.1.0

Ok?

comment:6 Changed 7 years ago by Nemo_bis

That didn't run (fatal errors, segfaults and whatnot) and I don't have time these days to build the exact compatible versions myself. I'm back to:

$ deluged --version deluged: 1.3.10 libtorrent: 0.16.18.0

comment:7 Changed 7 years ago by Cas

I did say 1.0 not 1.1. If you are on Jessie then use the Trusty repo from Ubuntu PPA https://launchpad.net/~deluge-team/+archive/ubuntu/ppa

comment:8 Changed 7 years ago by Nemo_bis

Ah, thanks. I wish I had known 2 hours ago. :) However I'm on Debian 8 now.

Note: See TracTickets for help on using tickets.