{"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/czmq/issues/1257","labels_url":"https://api.github.com/repos/zeromq/czmq/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/czmq/issues/1257/comments","events_url":"https://api.github.com/repos/zeromq/czmq/issues/1257/events","html_url":"https://github.com/zeromq/czmq/issues/1257","id":122629534,"number":1257,"title":"Zpoller can't poll for writing","user":{"login":"paddor","id":8876,"avatar_url":"https://avatars.githubusercontent.com/u/8876?v=3","gravatar_id":"","url":"https://api.github.com/users/paddor","html_url":"https://github.com/paddor","followers_url":"https://api.github.com/users/paddor/followers","following_url":"https://api.github.com/users/paddor/following{/other_user}","gists_url":"https://api.github.com/users/paddor/gists{/gist_id}","starred_url":"https://api.github.com/users/paddor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paddor/subscriptions","organizations_url":"https://api.github.com/users/paddor/orgs","repos_url":"https://api.github.com/users/paddor/repos","events_url":"https://api.github.com/users/paddor/events{/privacy}","received_events_url":"https://api.github.com/users/paddor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-12-16T23:44:55Z","updated_at":"2015-12-20T10:24:41Z","closed_at":"2015-12-20T09:57:36Z","body":"Would it be feasible to add support for polling for writing in zpoll?\r\n\r\nTo be able to port celluloid-zmq (see celluloid/celluloid-zmq#56) from ffi-rzmq to cztop, it'll need to poll for for writing. And I want to do this without using the zmq_poll interface directly in cztop.\r\n\r\n`git log src/zpoller.c` tells me that zpoller originally was intended to be a solution to the 80% usecase. I think this feature would make it 95% (still no support for file handles)."},"comment":{"url":"https://api.github.com/repos/zeromq/czmq/issues/comments/166106281","html_url":"https://github.com/zeromq/czmq/issues/1257#issuecomment-166106281","issue_url":"https://api.github.com/repos/zeromq/czmq/issues/1257","id":166106281,"user":{"login":"hintjens","id":307976,"avatar_url":"https://avatars.githubusercontent.com/u/307976?v=3","gravatar_id":"","url":"https://api.github.com/users/hintjens","html_url":"https://github.com/hintjens","followers_url":"https://api.github.com/users/hintjens/followers","following_url":"https://api.github.com/users/hintjens/following{/other_user}","gists_url":"https://api.github.com/users/hintjens/gists{/gist_id}","starred_url":"https://api.github.com/users/hintjens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hintjens/subscriptions","organizations_url":"https://api.github.com/users/hintjens/orgs","repos_url":"https://api.github.com/users/hintjens/repos","events_url":"https://api.github.com/users/hintjens/events{/privacy}","received_events_url":"https://api.github.com/users/hintjens/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T10:24:41Z","updated_at":"2015-12-20T10:24:41Z","body":"Yes, just that method, nothing else. This discipline of making minimal\nchanges is important... Otherwise the API simplicity breaks down over time.\nCompare zloop and zpoller and you see the difference.\nOn 20 Dec 2015 11:13, \"Patrik Wenger\" <notifications@github.com> wrote:\n\n> Or did you mean after adding zpoller_add_writer(), like @hintjens\n> <https://github.com/hintjens> suggested? I guess that could work...\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/zeromq/czmq/issues/1257#issuecomment-166102950>.\n>\n"}}