{"action":"created","issue":{"url":"https://api.github.com/repos/galeb/galeb-libraries/issues/20","repository_url":"https://api.github.com/repos/galeb/galeb-libraries","labels_url":"https://api.github.com/repos/galeb/galeb-libraries/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/galeb/galeb-libraries/issues/20/comments","events_url":"https://api.github.com/repos/galeb/galeb-libraries/issues/20/events","html_url":"https://github.com/galeb/galeb-libraries/issues/20","id":197605392,"number":20,"title":"LeastConn using DEAD backends","user":{"login":"tuxmonteiro","id":1256162,"avatar_url":"https://avatars.githubusercontent.com/u/1256162?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxmonteiro","html_url":"https://github.com/tuxmonteiro","followers_url":"https://api.github.com/users/tuxmonteiro/followers","following_url":"https://api.github.com/users/tuxmonteiro/following{/other_user}","gists_url":"https://api.github.com/users/tuxmonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxmonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxmonteiro/subscriptions","organizations_url":"https://api.github.com/users/tuxmonteiro/orgs","repos_url":"https://api.github.com/users/tuxmonteiro/repos","events_url":"https://api.github.com/users/tuxmonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/tuxmonteiro/received_events","type":"User","site_admin":false},"labels":[{"id":449909289,"url":"https://api.github.com/repos/galeb/galeb-libraries/labels/Backlog%20Q","name":"Backlog Q","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-26T17:06:50Z","updated_at":"2016-12-28T09:02:46Z","closed_at":null,"body":null},"comment":{"url":"https://api.github.com/repos/galeb/galeb-libraries/issues/comments/269447709","html_url":"https://github.com/galeb/galeb-libraries/issues/20#issuecomment-269447709","issue_url":"https://api.github.com/repos/galeb/galeb-libraries/issues/20","id":269447709,"user":{"login":"igorfernandes","id":3451406,"avatar_url":"https://avatars.githubusercontent.com/u/3451406?v=3","gravatar_id":"","url":"https://api.github.com/users/igorfernandes","html_url":"https://github.com/igorfernandes","followers_url":"https://api.github.com/users/igorfernandes/followers","following_url":"https://api.github.com/users/igorfernandes/following{/other_user}","gists_url":"https://api.github.com/users/igorfernandes/gists{/gist_id}","starred_url":"https://api.github.com/users/igorfernandes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorfernandes/subscriptions","organizations_url":"https://api.github.com/users/igorfernandes/orgs","repos_url":"https://api.github.com/users/igorfernandes/repos","events_url":"https://api.github.com/users/igorfernandes/events{/privacy}","received_events_url":"https://api.github.com/users/igorfernandes/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T09:02:46Z","updated_at":"2016-12-28T09:02:46Z","body":"Olhando esse final do código, não parece aceitar dead backends, uma vez que quando morto ele sai da lista de uris (assim como random e roundrobin utilizam o uris), ele verifica se existe lá antes de repassar a escolha.. \n\nint pos = 0;\nString choice = backends.poll();\nif (choice!=null) {\n     pos = uris.indexOf(choice);\n}\nreturn pos >= 0 ? pos : 0;\n\nMesmo com isso, faz sentido filtrar backends apenas que estejam no uris ?"}}
{"actor":{"display_login":"igorfernandes"}}