{"action":"created","issue":{"url":"https://api.github.com/repos/atomashpolskiy/bt/issues/64","repository_url":"https://api.github.com/repos/atomashpolskiy/bt","labels_url":"https://api.github.com/repos/atomashpolskiy/bt/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/atomashpolskiy/bt/issues/64/comments","events_url":"https://api.github.com/repos/atomashpolskiy/bt/issues/64/events","html_url":"https://github.com/atomashpolskiy/bt/issues/64","id":296257121,"number":64,"title":"Can't continiously donwload from slow peers","user":{"login":"ckovorodkin","id":35871192,"avatar_url":"https://avatars1.githubusercontent.com/u/35871192?v=4","gravatar_id":"","url":"https://api.github.com/users/ckovorodkin","html_url":"https://github.com/ckovorodkin","followers_url":"https://api.github.com/users/ckovorodkin/followers","following_url":"https://api.github.com/users/ckovorodkin/following{/other_user}","gists_url":"https://api.github.com/users/ckovorodkin/gists{/gist_id}","starred_url":"https://api.github.com/users/ckovorodkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckovorodkin/subscriptions","organizations_url":"https://api.github.com/users/ckovorodkin/orgs","repos_url":"https://api.github.com/users/ckovorodkin/repos","events_url":"https://api.github.com/users/ckovorodkin/events{/privacy}","received_events_url":"https://api.github.com/users/ckovorodkin/received_events","type":"User","site_admin":false},"labels":[{"id":376781146,"url":"https://api.github.com/repos/atomashpolskiy/bt/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-12T03:20:17Z","updated_at":"2018-02-17T23:44:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Timeout used for whole piece, while it is more appropriate to use it for a small block.\r\n\r\nhttps://github.com/atomashpolskiy/bt/blob/a37ca29f3585d0b34a2fbeb532a92368432dae9c/bt-core/src/main/java/bt/runtime/Config.java#L83\r\n\r\nDefault timeout is `30 sec`. Let piece size is `4 MiB`. In that case peer, that has download speed less than `4 MiB / 30 sec = 136 KiB/sec` will be disconnected by timeout."},"comment":{"url":"https://api.github.com/repos/atomashpolskiy/bt/issues/comments/366480019","html_url":"https://github.com/atomashpolskiy/bt/issues/64#issuecomment-366480019","issue_url":"https://api.github.com/repos/atomashpolskiy/bt/issues/64","id":366480019,"user":{"login":"atomashpolskiy","id":3748998,"avatar_url":"https://avatars0.githubusercontent.com/u/3748998?v=4","gravatar_id":"","url":"https://api.github.com/users/atomashpolskiy","html_url":"https://github.com/atomashpolskiy","followers_url":"https://api.github.com/users/atomashpolskiy/followers","following_url":"https://api.github.com/users/atomashpolskiy/following{/other_user}","gists_url":"https://api.github.com/users/atomashpolskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/atomashpolskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomashpolskiy/subscriptions","organizations_url":"https://api.github.com/users/atomashpolskiy/orgs","repos_url":"https://api.github.com/users/atomashpolskiy/repos","events_url":"https://api.github.com/users/atomashpolskiy/events{/privacy}","received_events_url":"https://api.github.com/users/atomashpolskiy/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T23:44:13Z","updated_at":"2018-02-17T23:44:13Z","author_association":"OWNER","body":"I think we can just replace the existing option with a new relative metric:\r\n_max amount of time to receive one unit of data (e.g. 1 MiB)_\r\nThen calculate session-specific timeout based on the size of a single piece"}}
{"actor":{"display_login":"atomashpolskiy"}}