{"action":"created","issue":{"url":"https://api.github.com/repos/JackWhite20/JaPS/issues/8","repository_url":"https://api.github.com/repos/JackWhite20/JaPS","labels_url":"https://api.github.com/repos/JackWhite20/JaPS/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/JackWhite20/JaPS/issues/8/comments","events_url":"https://api.github.com/repos/JackWhite20/JaPS/issues/8/events","html_url":"https://github.com/JackWhite20/JaPS/issues/8","id":311572054,"number":8,"title":"netty usage","user":{"login":"canatoly","id":17268664,"avatar_url":"https://avatars1.githubusercontent.com/u/17268664?v=4","gravatar_id":"","url":"https://api.github.com/users/canatoly","html_url":"https://github.com/canatoly","followers_url":"https://api.github.com/users/canatoly/followers","following_url":"https://api.github.com/users/canatoly/following{/other_user}","gists_url":"https://api.github.com/users/canatoly/gists{/gist_id}","starred_url":"https://api.github.com/users/canatoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canatoly/subscriptions","organizations_url":"https://api.github.com/users/canatoly/orgs","repos_url":"https://api.github.com/users/canatoly/repos","events_url":"https://api.github.com/users/canatoly/events{/privacy}","received_events_url":"https://api.github.com/users/canatoly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-05T11:25:42Z","updated_at":"2018-04-06T13:25:53Z","closed_at":"2018-04-06T13:25:53Z","author_association":"NONE","body":"reconnecting leads to many EventLoopGroup threads and then to \"many opened files\"\r\n\r\nde.jackwhite20.japs.shared.nio.NioSocketClient#connect\r\n\r\ninstance of Bootstrap should be created only once, not on every connect|reconnect\r\n\r\nplease, move it to constructor \r\n```\r\nprivate Bootstrap bootstrap;\r\n...\r\nbootstrap = new Bootstrap()\r\n                .group(PipelineUtils.newEventLoopGroup(1))\r\n                .channel(PipelineUtils.getChannel())\r\n                .handler(new ClientChannelInitializer(this))\r\n                .option(ChannelOption.TCP_NODELAY, true)\r\n                .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, CONNECT_TIMEOUT);\r\n```\r\n\r\nand in \"connect()\" method leave just \r\n`bootstrap.connect(host, port)`"},"comment":{"url":"https://api.github.com/repos/JackWhite20/JaPS/issues/comments/379252519","html_url":"https://github.com/JackWhite20/JaPS/issues/8#issuecomment-379252519","issue_url":"https://api.github.com/repos/JackWhite20/JaPS/issues/8","id":379252519,"user":{"login":"JackWhite20","id":7138037,"avatar_url":"https://avatars0.githubusercontent.com/u/7138037?v=4","gravatar_id":"","url":"https://api.github.com/users/JackWhite20","html_url":"https://github.com/JackWhite20","followers_url":"https://api.github.com/users/JackWhite20/followers","following_url":"https://api.github.com/users/JackWhite20/following{/other_user}","gists_url":"https://api.github.com/users/JackWhite20/gists{/gist_id}","starred_url":"https://api.github.com/users/JackWhite20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackWhite20/subscriptions","organizations_url":"https://api.github.com/users/JackWhite20/orgs","repos_url":"https://api.github.com/users/JackWhite20/repos","events_url":"https://api.github.com/users/JackWhite20/events{/privacy}","received_events_url":"https://api.github.com/users/JackWhite20/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T13:25:53Z","updated_at":"2018-04-06T13:25:53Z","author_association":"OWNER","body":"Okay thanks. I have profiled it too and everything should be fine. If not, reopen this issue or create a new one ;)\r\n\r\nRelease should come in about 3 hours."}}
{"actor":{"display_login":"JackWhite20"}}