{"action":"created","issue":{"url":"https://api.github.com/repos/chuckremes/ffi-rzmq/issues/127","repository_url":"https://api.github.com/repos/chuckremes/ffi-rzmq","labels_url":"https://api.github.com/repos/chuckremes/ffi-rzmq/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/chuckremes/ffi-rzmq/issues/127/comments","events_url":"https://api.github.com/repos/chuckremes/ffi-rzmq/issues/127/events","html_url":"https://github.com/chuckremes/ffi-rzmq/issues/127","id":238094996,"number":127,"title":"Correct way to exit","user":{"login":"black-snow","id":579733,"avatar_url":"https://avatars1.githubusercontent.com/u/579733?v=4","gravatar_id":"","url":"https://api.github.com/users/black-snow","html_url":"https://github.com/black-snow","followers_url":"https://api.github.com/users/black-snow/followers","following_url":"https://api.github.com/users/black-snow/following{/other_user}","gists_url":"https://api.github.com/users/black-snow/gists{/gist_id}","starred_url":"https://api.github.com/users/black-snow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/black-snow/subscriptions","organizations_url":"https://api.github.com/users/black-snow/orgs","repos_url":"https://api.github.com/users/black-snow/repos","events_url":"https://api.github.com/users/black-snow/events{/privacy}","received_events_url":"https://api.github.com/users/black-snow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-06-23T09:51:02Z","updated_at":"2018-02-08T14:01:05Z","closed_at":null,"author_association":"NONE","body":"Hey @chuckremes,\r\n\r\nwhat's the correct way to close sockets / kill contexts / exit programs with *ffi-rzmq*?\r\nFor ruby has no destructors I wonder what's the right way to close sockets.\r\n\r\nI have a method that uses zmq to get data from another service and I'd like to keep that socket open after the method call for I'll use it often. Do I have to close sockets in order to prevent leaks or will the GC do this for me?\r\nI could move the responsibility for closing the socket out of the context but it shouldn't be the caller's responsibility."},"comment":{"url":"https://api.github.com/repos/chuckremes/ffi-rzmq/issues/comments/364119724","html_url":"https://github.com/chuckremes/ffi-rzmq/issues/127#issuecomment-364119724","issue_url":"https://api.github.com/repos/chuckremes/ffi-rzmq/issues/127","id":364119724,"user":{"login":"black-snow","id":579733,"avatar_url":"https://avatars1.githubusercontent.com/u/579733?v=4","gravatar_id":"","url":"https://api.github.com/users/black-snow","html_url":"https://github.com/black-snow","followers_url":"https://api.github.com/users/black-snow/followers","following_url":"https://api.github.com/users/black-snow/following{/other_user}","gists_url":"https://api.github.com/users/black-snow/gists{/gist_id}","starred_url":"https://api.github.com/users/black-snow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/black-snow/subscriptions","organizations_url":"https://api.github.com/users/black-snow/orgs","repos_url":"https://api.github.com/users/black-snow/repos","events_url":"https://api.github.com/users/black-snow/events{/privacy}","received_events_url":"https://api.github.com/users/black-snow/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T14:01:05Z","updated_at":"2018-02-08T14:01:05Z","author_association":"NONE","body":"This is where it hangs: https://github.com/chuckremes/ffi-rzmq/blob/master/lib/ffi-rzmq/context.rb#L85"}}
{"actor":{"display_login":"black-snow"}}