{"action":"created","issue":{"url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/issues/7","repository_url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check","labels_url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/issues/7/comments","events_url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/issues/7/events","html_url":"https://github.com/matsumotory/mruby-fast-remote-check/pull/7","id":330250466,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMzA0MTk3","number":7,"title":"Wait for packet ICMP_ECHOREPLAY","user":{"login":"takumakume","id":10905048,"node_id":"MDQ6VXNlcjEwOTA1MDQ4","avatar_url":"https://avatars2.githubusercontent.com/u/10905048?v=4","gravatar_id":"","url":"https://api.github.com/users/takumakume","html_url":"https://github.com/takumakume","followers_url":"https://api.github.com/users/takumakume/followers","following_url":"https://api.github.com/users/takumakume/following{/other_user}","gists_url":"https://api.github.com/users/takumakume/gists{/gist_id}","starred_url":"https://api.github.com/users/takumakume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takumakume/subscriptions","organizations_url":"https://api.github.com/users/takumakume/orgs","repos_url":"https://api.github.com/users/takumakume/repos","events_url":"https://api.github.com/users/takumakume/events{/privacy}","received_events_url":"https://api.github.com/users/takumakume/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-07T12:29:16Z","updated_at":"2018-06-07T17:48:10Z","closed_at":"2018-06-07T12:51:37Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/pulls/7","html_url":"https://github.com/matsumotory/mruby-fast-remote-check/pull/7","diff_url":"https://github.com/matsumotory/mruby-fast-remote-check/pull/7.diff","patch_url":"https://github.com/matsumotory/mruby-fast-remote-check/pull/7.patch"},"body":"Hi.\r\n\r\nIt working with multi-worker ngx_mruby.\r\nI failed to process a large number of requests.\r\n\r\nSometimes, false is returned by: https://github.com/matsumotory/mruby-fast-remote-check/blob/master/src/mrb_fastremotecheck.c#L430\r\n\r\nI think that packet is the [check processing](https://github.com/matsumotory/mruby-fast-remote-check/blob/master/src/mrb_fastremotecheck.c#L424) in a state that has not been reached.\r\n\r\nBecause I modified to wait for packet arrival.\r\n\r\nNot degrade:\r\n\r\n```ruby\r\n## for reachable IP address\r\n# time mruby/bin/mruby -e 'puts FastRemoteCheck::ICMP.new(\"8.8.8.8\", 8).ping?'\r\ntrue\r\n\r\nreal\t0m0.021s\r\nuser\t0m0.009s\r\nsys\t0m0.012s\r\n\r\n## for unreacheble IP address\r\n# time mruby/bin/mruby -e 'puts FastRemoteCheck::ICMP.new(\"1.255.255.255\", 8).ping?'\r\ntrace (most recent call last):\r\n\t[0] -e:1\r\n-e:1: sys failed. errno: 11 message: Resource temporarily unavailable mrbgem message: recv timeout (RuntimeError)\r\n\r\nreal\t0m8.004s\r\nuser\t0m3.121s\r\nsys\t0m4.880s\r\n```"},"comment":{"url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/issues/comments/395507494","html_url":"https://github.com/matsumotory/mruby-fast-remote-check/pull/7#issuecomment-395507494","issue_url":"https://api.github.com/repos/matsumotory/mruby-fast-remote-check/issues/7","id":395507494,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTUwNzQ5NA==","user":{"login":"takumakume","id":10905048,"node_id":"MDQ6VXNlcjEwOTA1MDQ4","avatar_url":"https://avatars2.githubusercontent.com/u/10905048?v=4","gravatar_id":"","url":"https://api.github.com/users/takumakume","html_url":"https://github.com/takumakume","followers_url":"https://api.github.com/users/takumakume/followers","following_url":"https://api.github.com/users/takumakume/following{/other_user}","gists_url":"https://api.github.com/users/takumakume/gists{/gist_id}","starred_url":"https://api.github.com/users/takumakume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takumakume/subscriptions","organizations_url":"https://api.github.com/users/takumakume/orgs","repos_url":"https://api.github.com/users/takumakume/repos","events_url":"https://api.github.com/users/takumakume/events{/privacy}","received_events_url":"https://api.github.com/users/takumakume/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T17:48:10Z","updated_at":"2018-06-07T17:48:10Z","author_association":"NONE","body":"仰る通りだと思います。調べて、必要であれば別途PRします。"}}
{"actor":{"display_login":"takumakume"}}