{"action":"created","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/315","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/315/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/315/events","html_url":"https://github.com/arvidn/libtorrent/issues/315","id":120675426,"number":315,"title":"Error state on unregistered torrents not set correctly (tracker_backoff and autodl)","user":{"login":"niayh","id":16181724,"avatar_url":"https://avatars.githubusercontent.com/u/16181724?v=3","gravatar_id":"","url":"https://api.github.com/users/niayh","html_url":"https://github.com/niayh","followers_url":"https://api.github.com/users/niayh/followers","following_url":"https://api.github.com/users/niayh/following{/other_user}","gists_url":"https://api.github.com/users/niayh/gists{/gist_id}","starred_url":"https://api.github.com/users/niayh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niayh/subscriptions","organizations_url":"https://api.github.com/users/niayh/orgs","repos_url":"https://api.github.com/users/niayh/repos","events_url":"https://api.github.com/users/niayh/events{/privacy}","received_events_url":"https://api.github.com/users/niayh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-07T00:04:55Z","updated_at":"2015-12-08T01:47:14Z","closed_at":null,"body":"Hey there,\r\n\r\nI've been trying to get Deluge 1.3.12 + Libtorrent 1.0.7 to work in conjunction with an autodl filter and a watch folder from a private tracker. I've been running around in circles trying to figure out why if when a torrent is added before the tracker has registered it, the client will wait a full 30 minutes until the next announce to refresh.\r\n\r\nI found the tracker_backoff setting and was hopeful that this would fix my problem; however, no amount of changing this value would do anything to solve my problem with unregistered torrents. The torrent gets added and if the torrent is not registered, the announce interval is set to 30 minutes.\r\n\r\nI started wondering, perhaps a failure isn't being reported properly somehow. Sure enough, I altered the tracker URL to something bogus and suddenly the retry intervals were set according to the tracker_backoff setting ( 7, 15, 27, 45, 95, 127, 165 seconds, etc). This leads me to believe that somehow the error status on unregistered torrents isn't being recognized properly, even though the Announce Status reads: Error: (Unregistered Torrent) and as a result of being able to connect to the tracker, libtorrent decides to announce as if all is normal and set the next refresh to 30 minutes.\r\n\r\nThis may be a tracker specific issue; however, it's worth noting that the error state is read correctly when using AutoDL with rtorrent."},"comment":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments/162732544","html_url":"https://github.com/arvidn/libtorrent/issues/315#issuecomment-162732544","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/315","id":162732544,"user":{"login":"niayh","id":16181724,"avatar_url":"https://avatars.githubusercontent.com/u/16181724?v=3","gravatar_id":"","url":"https://api.github.com/users/niayh","html_url":"https://github.com/niayh","followers_url":"https://api.github.com/users/niayh/followers","following_url":"https://api.github.com/users/niayh/following{/other_user}","gists_url":"https://api.github.com/users/niayh/gists{/gist_id}","starred_url":"https://api.github.com/users/niayh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niayh/subscriptions","organizations_url":"https://api.github.com/users/niayh/orgs","repos_url":"https://api.github.com/users/niayh/repos","events_url":"https://api.github.com/users/niayh/events{/privacy}","received_events_url":"https://api.github.com/users/niayh/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T01:47:14Z","updated_at":"2015-12-08T01:47:14Z","body":"Ahh, I see now, what you mean by announce interval.\r\n\r\nLibtorrent is indeed behaving how you think: resetting to 3minutes\r\n\r\nWhen I use rtorrent the behavior is what I am hoping to see in deluge: rtorrent lists the torrent as if it is in error mode and keeps trying to sync with the tracker in small intervals until it manages to do so. At this point, it backs of to regular intervals. "}}