{"action":"created","issue":{"url":"https://api.github.com/repos/42wim/matterircd/issues/48","repository_url":"https://api.github.com/repos/42wim/matterircd","labels_url":"https://api.github.com/repos/42wim/matterircd/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/42wim/matterircd/issues/48/comments","events_url":"https://api.github.com/repos/42wim/matterircd/issues/48/events","html_url":"https://github.com/42wim/matterircd/issues/48","id":157273575,"number":48,"title":"Increasing file descriptor usage requires restart","user":{"login":"dogboat","id":19554266,"avatar_url":"https://avatars.githubusercontent.com/u/19554266?v=3","gravatar_id":"","url":"https://api.github.com/users/dogboat","html_url":"https://github.com/dogboat","followers_url":"https://api.github.com/users/dogboat/followers","following_url":"https://api.github.com/users/dogboat/following{/other_user}","gists_url":"https://api.github.com/users/dogboat/gists{/gist_id}","starred_url":"https://api.github.com/users/dogboat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogboat/subscriptions","organizations_url":"https://api.github.com/users/dogboat/orgs","repos_url":"https://api.github.com/users/dogboat/repos","events_url":"https://api.github.com/users/dogboat/events{/privacy}","received_events_url":"https://api.github.com/users/dogboat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-27T19:16:07Z","updated_at":"2016-05-28T01:00:52Z","closed_at":null,"body":"Our setup: CentOS 7.2 running Mattermost behind nginx; matterircd on the same box. 16 users total, 4 connected through matterircd.\r\n\r\nAfter some period of time (dependent on amount of chatting that occurs), matterircd will refuse to accept any further connections. Following the logs and watching the /proc/<matterircd_pid>/fd directory, it appears that some file descriptors are created with each message sent, but they don't always go away; used descriptor count increases until 1024 (the soft limit for the process), at which point the \"connection refused\" messages start to appear and the process must be restarted.\r\n\r\nInspection of the output of `lsof -p <matterircd_pid>` reveals many TYPE: sock and NAME: TCP sockets open (not in a connected state or listing connection source/destination); `ls -al /proc/<matterircd_pid>/` lists up to 1024 descriptors before the process must be restarted.\r\n\r\nNot sure if this is actually an issue with matterircd or one of the libraries it uses.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/42wim/matterircd/issues/comments/222281546","html_url":"https://github.com/42wim/matterircd/issues/48#issuecomment-222281546","issue_url":"https://api.github.com/repos/42wim/matterircd/issues/48","id":222281546,"user":{"login":"dogboat","id":19554266,"avatar_url":"https://avatars.githubusercontent.com/u/19554266?v=3","gravatar_id":"","url":"https://api.github.com/users/dogboat","html_url":"https://github.com/dogboat","followers_url":"https://api.github.com/users/dogboat/followers","following_url":"https://api.github.com/users/dogboat/following{/other_user}","gists_url":"https://api.github.com/users/dogboat/gists{/gist_id}","starred_url":"https://api.github.com/users/dogboat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogboat/subscriptions","organizations_url":"https://api.github.com/users/dogboat/orgs","repos_url":"https://api.github.com/users/dogboat/repos","events_url":"https://api.github.com/users/dogboat/events{/privacy}","received_events_url":"https://api.github.com/users/dogboat/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T01:00:52Z","updated_at":"2016-05-28T01:00:52Z","body":"Absolutely! I can build it myself, whatever's easiest for you! Thanks so much!"}}
{"actor":{"display_login":"dogboat"}}