{"action":"created","issue":{"url":"https://api.github.com/repos/transmission/transmission/issues/250","repository_url":"https://api.github.com/repos/transmission/transmission","labels_url":"https://api.github.com/repos/transmission/transmission/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/transmission/transmission/issues/250/comments","events_url":"https://api.github.com/repos/transmission/transmission/issues/250/events","html_url":"https://github.com/transmission/transmission/issues/250","id":223305196,"number":250,"title":"Amazon S3 tracker returns HTTP 400 for remaining byte estimates > 5GB","user":{"login":"jberkel","id":18891,"avatar_url":"https://avatars0.githubusercontent.com/u/18891?v=3","gravatar_id":"","url":"https://api.github.com/users/jberkel","html_url":"https://github.com/jberkel","followers_url":"https://api.github.com/users/jberkel/followers","following_url":"https://api.github.com/users/jberkel/following{/other_user}","gists_url":"https://api.github.com/users/jberkel/gists{/gist_id}","starred_url":"https://api.github.com/users/jberkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jberkel/subscriptions","organizations_url":"https://api.github.com/users/jberkel/orgs","repos_url":"https://api.github.com/users/jberkel/repos","events_url":"https://api.github.com/users/jberkel/events{/privacy}","received_events_url":"https://api.github.com/users/jberkel/received_events","type":"User","site_admin":false},"labels":[{"id":525576304,"url":"https://api.github.com/repos/transmission/transmission/labels/comp:core","name":"comp:core","color":"d4c5f9","default":false},{"id":208049011,"url":"https://api.github.com/repos/transmission/transmission/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-21T07:49:24Z","updated_at":"2017-05-01T06:07:19Z","closed_at":"2017-04-30T18:22:04Z","body":"If there's no metadata available, the remaining byte estimate is set to UINT64_MAX:\r\n\r\n```\r\nreq->leftUntilComplete = tr_torrentHasMetadata(tor) ?\r\n        tor->info.totalSize - tr_torrentHaveTotal(tor) \r\n        : ~(uint64_t)0;\r\n```\r\n([announcer.c](https://github.com/transmission/transmission/blob/master/libtransmission/announcer.c#L949))\r\n\r\nSome trackers (e.g. the ones used by Amazon S3) return an error when the `left=` parameter is bigger than 5GB:\r\n\r\n```bash\r\ncurl -v  'http://s3-tracker.eu-central-1.amazonaws.com:6969/announce?info_hash=%1fE%e5%8a%b1p5%7b%28e%f1%ba%1dv%90%f2m0%e5%9a&peer_id=-TR292Z-q2tk1lqg46m7&port=51413&uploaded=0&downloaded=0&left=18446744073709551615&numwant=80&compact=1&event=started'\r\n*   Trying 54.239.54.85...\r\n* TCP_NODELAY set\r\n* Connected to s3-tracker.eu-central-1.amazonaws.com (54.239.54.85) port 6969 (#0)\r\n> GET /announce?info_hash=%1fE%e5%8a%b1p5%7b%28e%f1%ba%1dv%90%f2m0%e5%9a&peer_id=-TR292Z-q2tk1lqg46m7&port=51413&uploaded=0&downloaded=0&left=18446744073709551615&numwant=80&key=2a201a75&compact=1&supportcrypto=1&event=started&ipv6=2001%3A4b98%3Adc0%3A41%3A216%3A3eff%3Afe39%3A30f HTTP/1.1\r\n> Host: s3-tracker.eu-central-1.amazonaws.com:6969\r\n> User-Agent: curl/7.51.0\r\n> Accept: */*\r\n>\r\n< HTTP/1.1 400 Bad Request\r\n< Content-Type: text/plain;charset=ISO-8859-1\r\n< Content-Length: 46\r\n< Date: Fri, 21 Apr 2017 07:39:02 GMT\r\n< Connection: close\r\n< Server: AmazonS3\r\n<\r\n* Curl_http_done: called premature == 0\r\n* Connection #0 to host s3-tracker.eu-central-1.amazonaws.com left intact\r\nleft(18446744073709551615) must be an integer.\r\n```"},"comment":{"url":"https://api.github.com/repos/transmission/transmission/issues/comments/298291595","html_url":"https://github.com/transmission/transmission/issues/250#issuecomment-298291595","issue_url":"https://api.github.com/repos/transmission/transmission/issues/250","id":298291595,"user":{"login":"kholia","id":79528,"avatar_url":"https://avatars2.githubusercontent.com/u/79528?v=3","gravatar_id":"","url":"https://api.github.com/users/kholia","html_url":"https://github.com/kholia","followers_url":"https://api.github.com/users/kholia/followers","following_url":"https://api.github.com/users/kholia/following{/other_user}","gists_url":"https://api.github.com/users/kholia/gists{/gist_id}","starred_url":"https://api.github.com/users/kholia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kholia/subscriptions","organizations_url":"https://api.github.com/users/kholia/orgs","repos_url":"https://api.github.com/users/kholia/repos","events_url":"https://api.github.com/users/kholia/events{/privacy}","received_events_url":"https://api.github.com/users/kholia/received_events","type":"User","site_admin":false},"created_at":"2017-05-01T06:07:19Z","updated_at":"2017-05-01T06:07:19Z","body":"Sending `(1 << 63) - 1` or `pow(2, 63) - 1)` as the value of `left` seems to works fine with Amazon S3 tracker."}}
{"actor":{"display_login":"kholia"}}