{"action":"created","issue":{"url":"https://api.github.com/repos/excon/excon/issues/504","labels_url":"https://api.github.com/repos/excon/excon/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/excon/excon/issues/504/comments","events_url":"https://api.github.com/repos/excon/excon/issues/504/events","html_url":"https://github.com/excon/excon/pull/504","id":69070390,"number":504,"title":"Ensure rackup starts server listening on all hosts for reusable port test","user":{"login":"mikehale","id":1583,"avatar_url":"https://avatars.githubusercontent.com/u/1583?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehale","html_url":"https://github.com/mikehale","followers_url":"https://api.github.com/users/mikehale/followers","following_url":"https://api.github.com/users/mikehale/following{/other_user}","gists_url":"https://api.github.com/users/mikehale/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehale/subscriptions","organizations_url":"https://api.github.com/users/mikehale/orgs","repos_url":"https://api.github.com/users/mikehale/repos","events_url":"https://api.github.com/users/mikehale/events{/privacy}","received_events_url":"https://api.github.com/users/mikehale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T06:09:54Z","updated_at":"2015-04-17T06:22:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/excon/excon/pulls/504","html_url":"https://github.com/excon/excon/pull/504","diff_url":"https://github.com/excon/excon/pull/504.diff","patch_url":"https://github.com/excon/excon/pull/504.patch"},"body":"It appears that at some point rackup (or excon's use of rackup) changed so that webrick was no longer started listening on all interfaces. This lead to the server only listening on `localhost` which broke the `local port can be re-bound` test.\r\n\r\nsupposed rackup defaults:\r\n\r\n```\r\n$ rackup --help|grep host\r\n  -o, --host HOST          listen on HOST (default: 0.0.0.0)\r\n```\r\n\r\nFixes #497 "},"comment":{"url":"https://api.github.com/repos/excon/excon/issues/comments/93903956","html_url":"https://github.com/excon/excon/pull/504#issuecomment-93903956","issue_url":"https://api.github.com/repos/excon/excon/issues/504","id":93903956,"user":{"login":"mikehale","id":1583,"avatar_url":"https://avatars.githubusercontent.com/u/1583?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehale","html_url":"https://github.com/mikehale","followers_url":"https://api.github.com/users/mikehale/followers","following_url":"https://api.github.com/users/mikehale/following{/other_user}","gists_url":"https://api.github.com/users/mikehale/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehale/subscriptions","organizations_url":"https://api.github.com/users/mikehale/orgs","repos_url":"https://api.github.com/users/mikehale/repos","events_url":"https://api.github.com/users/mikehale/events{/privacy}","received_events_url":"https://api.github.com/users/mikehale/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T06:22:07Z","updated_at":"2015-04-17T06:22:07Z","body":"It looks like the [default host](https://github.com/rack/rack/blob/master/lib/rack/server.rb#L204-L205) is affected by `RACK_ENV`. It has been that way since reusable ports were introduced into excon. [Travis-ci](http://docs.travis-ci.com/user/ci-environment/#Environment-variables) sets `RACK_ENV=test`, which would result in a default host of `0.0.0.0` which explains why tests would pass on the build server."}}