{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/2172","repository_url":"https://api.github.com/repos/coreos/rkt","labels_url":"https://api.github.com/repos/coreos/rkt/issues/2172/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/2172/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/2172/events","html_url":"https://github.com/coreos/rkt/pull/2172","id":132711265,"number":2172,"title":"functional tests: Workaround a listening on localhost failure on ubun…","user":{"login":"krnowak","id":96081,"avatar_url":"https://avatars.githubusercontent.com/u/96081?v=3","gravatar_id":"","url":"https://api.github.com/users/krnowak","html_url":"https://github.com/krnowak","followers_url":"https://api.github.com/users/krnowak/followers","following_url":"https://api.github.com/users/krnowak/following{/other_user}","gists_url":"https://api.github.com/users/krnowak/gists{/gist_id}","starred_url":"https://api.github.com/users/krnowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krnowak/subscriptions","organizations_url":"https://api.github.com/users/krnowak/orgs","repos_url":"https://api.github.com/users/krnowak/repos","events_url":"https://api.github.com/users/krnowak/events{/privacy}","received_events_url":"https://api.github.com/users/krnowak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/rkt/labels/area/testing","name":"area/testing","color":"bfe5bf"},{"url":"https://api.github.com/repos/coreos/rkt/labels/needs%20review","name":"needs review","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/coreos/rkt/milestones/31","html_url":"https://github.com/coreos/rkt/milestones/v1.1.0","labels_url":"https://api.github.com/repos/coreos/rkt/milestones/31/labels","id":1546599,"number":31,"title":"v1.1.0","description":"","creator":{"login":"jonboulle","id":2601015,"avatar_url":"https://avatars.githubusercontent.com/u/2601015?v=3","gravatar_id":"","url":"https://api.github.com/users/jonboulle","html_url":"https://github.com/jonboulle","followers_url":"https://api.github.com/users/jonboulle/followers","following_url":"https://api.github.com/users/jonboulle/following{/other_user}","gists_url":"https://api.github.com/users/jonboulle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonboulle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonboulle/subscriptions","organizations_url":"https://api.github.com/users/jonboulle/orgs","repos_url":"https://api.github.com/users/jonboulle/repos","events_url":"https://api.github.com/users/jonboulle/events{/privacy}","received_events_url":"https://api.github.com/users/jonboulle/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":25,"state":"open","created_at":"2016-01-27T16:09:46Z","updated_at":"2016-02-22T10:37:43Z","due_on":"2016-02-24T23:00:00Z","closed_at":null},"comments":2,"created_at":"2016-02-10T14:20:13Z","updated_at":"2016-02-22T12:48:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/rkt/pulls/2172","html_url":"https://github.com/coreos/rkt/pull/2172","diff_url":"https://github.com/coreos/rkt/pull/2172.diff","patch_url":"https://github.com/coreos/rkt/pull/2172.patch"},"body":"…tu 16.04\r\n\r\nThis commit fixes one problem, and works around another one.\r\n\r\nThe first problem was assuming that localhost = 127.0.0.1. While this\r\nis a quite safe assumption, one can always do weird stuff in their\r\n/etc/hosts (like no ipv4 for localhost). Instead we look up the\r\naddress of localhost and try to listen to it.\r\n\r\nThe problem we are working around is a some kind of race somewhere -\r\nthe old server closes the listener and then the new server creates a\r\nnew one which listens on the same address and port. Somehow, something\r\nin the network stack acknowledges the closing of the listener with a\r\ndelay, which causes new server to fail to listen on that address and\r\nport, because it is still bound. This has happened only on Ubuntu 1604\r\nso far.\r\n\r\nThere wouldn't be any such problems if we had discovery on a custom\r\nport instead, because we wouldn't have to listen on fixed ports (like\r\n80 or 443).\r\n\r\nFixes #2095."},"comment":{"url":"https://api.github.com/repos/coreos/rkt/issues/comments/187157140","html_url":"https://github.com/coreos/rkt/pull/2172#issuecomment-187157140","issue_url":"https://api.github.com/repos/coreos/rkt/issues/2172","id":187157140,"user":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T12:48:00Z","updated_at":"2016-02-22T12:48:00Z","body":"one small change, looks good after that."}}