{"action":"created","issue":{"url":"https://api.github.com/repos/ellzey/libevhtp/issues/175","labels_url":"https://api.github.com/repos/ellzey/libevhtp/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/ellzey/libevhtp/issues/175/comments","events_url":"https://api.github.com/repos/ellzey/libevhtp/issues/175/events","html_url":"https://github.com/ellzey/libevhtp/issues/175","id":95216842,"number":175,"title":"EADDRINUSE when trying to bind IPv4 and IPv6 on same port","user":{"login":"TETYYS","id":3091645,"avatar_url":"https://avatars.githubusercontent.com/u/3091645?v=3","gravatar_id":"","url":"https://api.github.com/users/TETYYS","html_url":"https://github.com/TETYYS","followers_url":"https://api.github.com/users/TETYYS/followers","following_url":"https://api.github.com/users/TETYYS/following{/other_user}","gists_url":"https://api.github.com/users/TETYYS/gists{/gist_id}","starred_url":"https://api.github.com/users/TETYYS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TETYYS/subscriptions","organizations_url":"https://api.github.com/users/TETYYS/orgs","repos_url":"https://api.github.com/users/TETYYS/repos","events_url":"https://api.github.com/users/TETYYS/events{/privacy}","received_events_url":"https://api.github.com/users/TETYYS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T14:59:39Z","updated_at":"2015-07-15T17:10:37Z","closed_at":null,"body":"Hello,\r\n\r\nWhen I'm trying to bind to 0.0.0.0 (or :: for IPv6) on same port, I get EADDRINUSE (as provided by errno). I'm trying to bind with `evhtp_bind_socket` to different `evhtp_t`. I tried different `event_base` too, but with no luck. When I try to specify, for example, 0.0.0.0 for IPv4, then ::1 for IPv6 and same port for both, everything works fine (well, not everything, because I don't really want to listen on ::1)."},"comment":{"url":"https://api.github.com/repos/ellzey/libevhtp/issues/comments/121682082","html_url":"https://github.com/ellzey/libevhtp/issues/175#issuecomment-121682082","issue_url":"https://api.github.com/repos/ellzey/libevhtp/issues/175","id":121682082,"user":{"login":"rraptorr","id":62799,"avatar_url":"https://avatars.githubusercontent.com/u/62799?v=3","gravatar_id":"","url":"https://api.github.com/users/rraptorr","html_url":"https://github.com/rraptorr","followers_url":"https://api.github.com/users/rraptorr/followers","following_url":"https://api.github.com/users/rraptorr/following{/other_user}","gists_url":"https://api.github.com/users/rraptorr/gists{/gist_id}","starred_url":"https://api.github.com/users/rraptorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rraptorr/subscriptions","organizations_url":"https://api.github.com/users/rraptorr/orgs","repos_url":"https://api.github.com/users/rraptorr/repos","events_url":"https://api.github.com/users/rraptorr/events{/privacy}","received_events_url":"https://api.github.com/users/rraptorr/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T17:10:37Z","updated_at":"2015-07-15T17:10:37Z","body":"Happy Eyeballs is client side (and is implemented in every browser at least).\r\n\r\nThis issue is about server, but it is really an OS specific behavior. On Linux it is controlled by /proc/sys/net/ipv6/bindv6only. Setting it to 1 causes IPv4 and IPv6 to be separate sockets. This can also be controlled with setsockopt (IPV6_V6ONLY option) on per socket basis."}}