{"action":"created","issue":{"url":"https://api.github.com/repos/libuv/libuv/issues/691","labels_url":"https://api.github.com/repos/libuv/libuv/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/libuv/libuv/issues/691/comments","events_url":"https://api.github.com/repos/libuv/libuv/issues/691/events","html_url":"https://github.com/libuv/libuv/pull/691","id":127798302,"number":691,"title":"poll: add UV_DISCONNECT event","user":{"login":"santigimeno","id":1084056,"avatar_url":"https://avatars.githubusercontent.com/u/1084056?v=3","gravatar_id":"","url":"https://api.github.com/users/santigimeno","html_url":"https://github.com/santigimeno","followers_url":"https://api.github.com/users/santigimeno/followers","following_url":"https://api.github.com/users/santigimeno/following{/other_user}","gists_url":"https://api.github.com/users/santigimeno/gists{/gist_id}","starred_url":"https://api.github.com/users/santigimeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santigimeno/subscriptions","organizations_url":"https://api.github.com/users/santigimeno/orgs","repos_url":"https://api.github.com/users/santigimeno/repos","events_url":"https://api.github.com/users/santigimeno/events{/privacy}","received_events_url":"https://api.github.com/users/santigimeno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-20T22:22:57Z","updated_at":"2016-02-01T22:39:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libuv/libuv/pulls/691","html_url":"https://github.com/libuv/libuv/pull/691","diff_url":"https://github.com/libuv/libuv/pull/691.diff","patch_url":"https://github.com/libuv/libuv/pull/691.patch"},"body":"It allows detecting the remote socket closing the connection. It's\r\nemitted when `EPOLLRDHUP`(Linux), `EV_EOF`(BSD's), `POLLRDHUP`(Solaris,\r\nAIX) and `AFD_POLL_DISCONNECT`(Windows) events are received.\r\nUpdate `test-poll` tests to check for the new event.\r\n\r\nIt tries to implement what's suggested in : https://github.com/libuv/libuv/issues/681.\r\nI have tested it in: `Debian Jessie 64`, `OS X`, `FreeBSD` and `Smart OS` and it seems to work ok.\r\n\r\nDisclaimer: The `Windows` bits I haven't tried as I don't have a Windows box available nor I've the knowledge so most probably are wrong."},"comment":{"url":"https://api.github.com/repos/libuv/libuv/issues/comments/178235757","html_url":"https://github.com/libuv/libuv/pull/691#issuecomment-178235757","issue_url":"https://api.github.com/repos/libuv/libuv/issues/691","id":178235757,"user":{"login":"santigimeno","id":1084056,"avatar_url":"https://avatars.githubusercontent.com/u/1084056?v=3","gravatar_id":"","url":"https://api.github.com/users/santigimeno","html_url":"https://github.com/santigimeno","followers_url":"https://api.github.com/users/santigimeno/followers","following_url":"https://api.github.com/users/santigimeno/following{/other_user}","gists_url":"https://api.github.com/users/santigimeno/gists{/gist_id}","starred_url":"https://api.github.com/users/santigimeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santigimeno/subscriptions","organizations_url":"https://api.github.com/users/santigimeno/orgs","repos_url":"https://api.github.com/users/santigimeno/repos","events_url":"https://api.github.com/users/santigimeno/events{/privacy}","received_events_url":"https://api.github.com/users/santigimeno/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T22:39:52Z","updated_at":"2016-02-01T22:39:52Z","body":"PR updated:\r\n- Added `version changed`.\r\n- Small change in Windows implementation.\r\n- Some fprintf to debug Windows failures\r\n\r\nCould you please start a CI run. Thanks!"}}