{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/8252","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/8252/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/8252/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/8252/events","html_url":"https://github.com/elixir-lang/elixir/issues/8252","id":367280923,"node_id":"MDU6SXNzdWUzNjcyODA5MjM=","number":8252,"title":"`mix local.hex` hangs indefinately","user":{"login":"dymk","id":1578600,"node_id":"MDQ6VXNlcjE1Nzg2MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1578600?v=4","gravatar_id":"","url":"https://api.github.com/users/dymk","html_url":"https://github.com/dymk","followers_url":"https://api.github.com/users/dymk/followers","following_url":"https://api.github.com/users/dymk/following{/other_user}","gists_url":"https://api.github.com/users/dymk/gists{/gist_id}","starred_url":"https://api.github.com/users/dymk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dymk/subscriptions","organizations_url":"https://api.github.com/users/dymk/orgs","repos_url":"https://api.github.com/users/dymk/repos","events_url":"https://api.github.com/users/dymk/events{/privacy}","received_events_url":"https://api.github.com/users/dymk/received_events","type":"User","site_admin":false},"labels":[{"id":10229539,"node_id":"MDU6TGFiZWwxMDIyOTUzOQ==","url":"https://api.github.com/repos/elixir-lang/elixir/labels/App:Mix","name":"App:Mix","color":"CCCCCC","default":false},{"id":207974,"node_id":"MDU6TGFiZWwyMDc5NzQ=","url":"https://api.github.com/repos/elixir-lang/elixir/labels/Kind:Bug","name":"Kind:Bug","color":"e10c02","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-10-05T16:23:06Z","updated_at":"2018-10-27T18:06:17Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n\r\n* Elixir & Erlang/OTP versions (elixir --version): \r\n\r\n```\r\nErlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:8:4] [ds:8:4:10] [async-threads:1] [hipe]\r\n\r\nElixir 1.8.0-dev (c483c9c) (compiled with Erlang/OTP 21)\r\n```\r\n\r\n* Operating system: \r\n\r\n```\r\n~/elixir> lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 16.04.5 LTS\r\nRelease:        16.04\r\nCodename:       xenial\r\n```\r\n\r\n### Current behavior\r\n\r\nRunning `mix local.hex` hangs with no output. I've tracked down the hang to [this line](https://github.com/elixir-lang/elixir/blob/master/lib/mix/lib/mix/utils.ex#L579) by binary-searching using of `IO.puts` and commenting out lines.\r\n\r\nCommenting out the line `:httpc.set_option(:ipfamily, :inet6fb4, :mix)` makes the request succeed. I'm unable to find documentation on the `:inet6fb4` option for `set_option` - actually I'm unable to find documentation for `http:set_option` at all. I see that there exists a function called `httpc:set_options` (note plural options vs option). \r\n\r\n### Expected behavior\r\n\r\nMix should not hang. Commenting out the above line fixes the hang. "},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/433642650","html_url":"https://github.com/elixir-lang/elixir/issues/8252#issuecomment-433642650","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/8252","id":433642650,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzY0MjY1MA==","user":{"login":"josevalim","id":9582,"node_id":"MDQ6VXNlcjk1ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/9582?v=4","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T18:06:17Z","updated_at":"2018-10-27T18:06:17Z","author_association":"MEMBER","body":"I have checked and in OTP21 the `:httpc.set_option(:ipfamily, :inet6fb4, :mix)` is deprecated, so i will go ahead and remove it, but I still think we should wrap the whole read_path operation in a task and give the user a reasonable error message in cases of timeout. :)"}}
{"actor":{"display_login":"josevalim"}}