{"action":"created","issue":{"url":"https://api.github.com/repos/ygrek/extunix/issues/7","labels_url":"https://api.github.com/repos/ygrek/extunix/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ygrek/extunix/issues/7/comments","events_url":"https://api.github.com/repos/ygrek/extunix/issues/7/events","html_url":"https://github.com/ygrek/extunix/pull/7","id":79496885,"number":7,"title":"Break up setsockopt support and its TCP options.","user":{"login":"haesbaert","id":204048,"avatar_url":"https://avatars.githubusercontent.com/u/204048?v=3","gravatar_id":"","url":"https://api.github.com/users/haesbaert","html_url":"https://github.com/haesbaert","followers_url":"https://api.github.com/users/haesbaert/followers","following_url":"https://api.github.com/users/haesbaert/following{/other_user}","gists_url":"https://api.github.com/users/haesbaert/gists{/gist_id}","starred_url":"https://api.github.com/users/haesbaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haesbaert/subscriptions","organizations_url":"https://api.github.com/users/haesbaert/orgs","repos_url":"https://api.github.com/users/haesbaert/repos","events_url":"https://api.github.com/users/haesbaert/events{/privacy}","received_events_url":"https://api.github.com/users/haesbaert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-22T15:28:53Z","updated_at":"2015-05-28T14:33:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ygrek/extunix/pulls/7","html_url":"https://github.com/ygrek/extunix/pull/7","diff_url":"https://github.com/ygrek/extunix/pull/7.diff","patch_url":"https://github.com/ygrek/extunix/pull/7.patch"},"body":"This makes sockopt available to OS X and very likely to other BSD systems, more\r\nespecifically, OS X does not have TCP_KEEPIDLE, but has all the others.\r\n\r\nIf we can't detect the TCP option, we define the value to -1, then we fake a\r\nENOPROTOOPT if the user passed an option defined to -1.\r\n\r\nThe risk, although virtually impossible, is that there is a unix system actually\r\nusing -1 to the value of those tcp options.\r\n\r\n checking VMSPLICE............failed\r\n-checking SOCKOPT.............failed\r\n+checking SOCKOPT.............ok\r\n+checking TCP_KEEPCNT.........ok\r\n+checking TCP_KEEPIDLE........failed\r\n+checking TCP_KEEPINTVL.......ok\r\n checking POLL................ok"},"comment":{"url":"https://api.github.com/repos/ygrek/extunix/issues/comments/106358025","html_url":"https://github.com/ygrek/extunix/pull/7#issuecomment-106358025","issue_url":"https://api.github.com/repos/ygrek/extunix/issues/7","id":106358025,"user":{"login":"haesbaert","id":204048,"avatar_url":"https://avatars.githubusercontent.com/u/204048?v=3","gravatar_id":"","url":"https://api.github.com/users/haesbaert","html_url":"https://github.com/haesbaert","followers_url":"https://api.github.com/users/haesbaert/followers","following_url":"https://api.github.com/users/haesbaert/following{/other_user}","gists_url":"https://api.github.com/users/haesbaert/gists{/gist_id}","starred_url":"https://api.github.com/users/haesbaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haesbaert/subscriptions","organizations_url":"https://api.github.com/users/haesbaert/orgs","repos_url":"https://api.github.com/users/haesbaert/repos","events_url":"https://api.github.com/users/haesbaert/events{/privacy}","received_events_url":"https://api.github.com/users/haesbaert/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T14:33:39Z","updated_at":"2015-05-28T14:33:39Z","body":"I'm having some issues registering the exception back to C, the code in question doesn't run:\r\n\r\nlet () = Callback.register_exception \"Not_available\" (Not_available \"nothing\")\r\n\r\nI've tried adding it right after the Not_available definition, but it doesn't run. When I add that line to my test program, everything works and I can call the exception from C code."}}