{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/otp/issues/612","repository_url":"https://api.github.com/repos/erlang/otp","labels_url":"https://api.github.com/repos/erlang/otp/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/erlang/otp/issues/612/comments","events_url":"https://api.github.com/repos/erlang/otp/issues/612/events","html_url":"https://github.com/erlang/otp/pull/612","id":57119352,"number":612,"title":"Fix ability to use gen_tcp/gen_udp with externally open AF_LOCAL fds","user":{"login":"saleyn","id":272543,"avatar_url":"https://avatars.githubusercontent.com/u/272543?v=3","gravatar_id":"","url":"https://api.github.com/users/saleyn","html_url":"https://github.com/saleyn","followers_url":"https://api.github.com/users/saleyn/followers","following_url":"https://api.github.com/users/saleyn/following{/other_user}","gists_url":"https://api.github.com/users/saleyn/gists{/gist_id}","starred_url":"https://api.github.com/users/saleyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleyn/subscriptions","organizations_url":"https://api.github.com/users/saleyn/orgs","repos_url":"https://api.github.com/users/saleyn/repos","events_url":"https://api.github.com/users/saleyn/events{/privacy}","received_events_url":"https://api.github.com/users/saleyn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erlang/otp/labels/feature","name":"feature","color":"7159f7"},{"url":"https://api.github.com/repos/erlang/otp/labels/team:PS","name":"team:PS","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"RaimoNiskanen","id":189373,"avatar_url":"https://avatars.githubusercontent.com/u/189373?v=3","gravatar_id":"","url":"https://api.github.com/users/RaimoNiskanen","html_url":"https://github.com/RaimoNiskanen","followers_url":"https://api.github.com/users/RaimoNiskanen/followers","following_url":"https://api.github.com/users/RaimoNiskanen/following{/other_user}","gists_url":"https://api.github.com/users/RaimoNiskanen/gists{/gist_id}","starred_url":"https://api.github.com/users/RaimoNiskanen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaimoNiskanen/subscriptions","organizations_url":"https://api.github.com/users/RaimoNiskanen/orgs","repos_url":"https://api.github.com/users/RaimoNiskanen/repos","events_url":"https://api.github.com/users/RaimoNiskanen/events{/privacy}","received_events_url":"https://api.github.com/users/RaimoNiskanen/received_events","type":"User","site_admin":false},"milestone":null,"comments":44,"created_at":"2015-02-10T01:52:07Z","updated_at":"2016-06-03T06:55:53Z","closed_at":"2016-06-02T10:09:45Z","pull_request":{"url":"https://api.github.com/repos/erlang/otp/pulls/612","html_url":"https://github.com/erlang/otp/pull/612","diff_url":"https://github.com/erlang/otp/pull/612.diff","patch_url":"https://github.com/erlang/otp/pull/612.patch"},"body":"When a AF_LOCAL file descriptor is created externally (e.g. Unix\r\nDomain Socket) and passed to `gen_tcp:listen(0, [{fd, FD}])`, the\r\nimplementation incorrectly assigned the address family to be equal\r\nto `inet`, which in the inet_drv driver translated to AF_INET instead\r\nof AF_LOCAL (or AF_UNIX), and an `einval` error code was returned.\r\nThis patch fixes this problem such that the file descriptors of the\r\n`local` address family are supported in the inet:fdopen/5,\r\ngen_tcp:connect/3, gen_tcp:listen/2, gen_udp:open/2 calls.\r\n\r\nSee https://github.com/saleyn/euds for examples of using this feature."},"comment":{"url":"https://api.github.com/repos/erlang/otp/issues/comments/223504952","html_url":"https://github.com/erlang/otp/pull/612#issuecomment-223504952","issue_url":"https://api.github.com/repos/erlang/otp/issues/612","id":223504952,"user":{"login":"RaimoNiskanen","id":189373,"avatar_url":"https://avatars.githubusercontent.com/u/189373?v=3","gravatar_id":"","url":"https://api.github.com/users/RaimoNiskanen","html_url":"https://github.com/RaimoNiskanen","followers_url":"https://api.github.com/users/RaimoNiskanen/followers","following_url":"https://api.github.com/users/RaimoNiskanen/following{/other_user}","gists_url":"https://api.github.com/users/RaimoNiskanen/gists{/gist_id}","starred_url":"https://api.github.com/users/RaimoNiskanen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaimoNiskanen/subscriptions","organizations_url":"https://api.github.com/users/RaimoNiskanen/orgs","repos_url":"https://api.github.com/users/RaimoNiskanen/repos","events_url":"https://api.github.com/users/RaimoNiskanen/events{/privacy}","received_events_url":"https://api.github.com/users/RaimoNiskanen/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T06:55:53Z","updated_at":"2016-06-03T06:55:53Z","body":"Alright.  Fair point!  It also seems like some kind of way in the middle since I find Linux forums that talk about renaming AF_LOCAL to AF_FILE, so AF_LOCAL maybe is the common name today..."}}
{"actor":{"display_login":"RaimoNiskanen"}}