{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/316","labels_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/316/comments","events_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/316/events","html_url":"https://github.com/ReactiveX/RxNetty/issues/316","id":54998662,"number":316,"title":"bug: FileRequestHandler error:  Too many open files","user":{"login":"chen56","id":2039742,"avatar_url":"https://avatars.githubusercontent.com/u/2039742?v=3","gravatar_id":"","url":"https://api.github.com/users/chen56","html_url":"https://github.com/chen56","followers_url":"https://api.github.com/users/chen56/followers","following_url":"https://api.github.com/users/chen56/following{/other_user}","gists_url":"https://api.github.com/users/chen56/gists{/gist_id}","starred_url":"https://api.github.com/users/chen56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen56/subscriptions","organizations_url":"https://api.github.com/users/chen56/orgs","repos_url":"https://api.github.com/users/chen56/repos","events_url":"https://api.github.com/users/chen56/events{/privacy}","received_events_url":"https://api.github.com/users/chen56/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveX/RxNetty/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T09:59:27Z","updated_at":"2015-01-21T19:27:56Z","closed_at":null,"body":"rxnetty-0.4.4\r\n\r\nat FileRequestHandler.java:95: Too many open files.\r\nRandomAccessFile not closed.\r\n\r\nSteps to reproduce the bug:  \r\n1.\r\n>netstat -anp|grep 25001\r\n20576\r\n\r\n2.\r\n>ls -l /proc/20576/fd/ | wc -l\r\n0\r\n\r\n3.\r\naccess the static file uri \r\n\r\n4.\r\n>ls -l /proc/20576/fd/ | wc -l\r\n15\r\n\r\n\r\n\r\n\r\nerror:\r\njava.io.FileNotFoundException: /home/c/resources/static/user/index.html (Too many open files)\\n\\t\r\nat java.io.RandomAccessFile.open(Native Method)\\n\\tat java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)\\n\\t\r\nat io.reactivex.netty.protocol.http.server.file.FileRequestHandler.handle(FileRequestHandler.java:95)\\n\\t\r\nat io.reactivex.netty.protocol.http.server.RequestHandlerWithErrorMapper.handle(RequestHandlerWithErrorMapper.java:46)\\n\\t\r\nat firebats.http.server.old.AbstractRoute$1.handle(AbstractRoute.java:67)\\n\\t\r\nat firebats.http.server.old.AbstractRoute$1.handle(AbstractRoute.java:61)\\n\\t\r\nat firebats.http.server.old.AbstractRoute$2.call(AbstractRoute.java:115)\\n\\t"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/comments/70904328","html_url":"https://github.com/ReactiveX/RxNetty/issues/316#issuecomment-70904328","issue_url":"https://api.github.com/repos/ReactiveX/RxNetty/issues/316","id":70904328,"user":{"login":"NiteshKant","id":820005,"avatar_url":"https://avatars.githubusercontent.com/u/820005?v=3","gravatar_id":"","url":"https://api.github.com/users/NiteshKant","html_url":"https://github.com/NiteshKant","followers_url":"https://api.github.com/users/NiteshKant/followers","following_url":"https://api.github.com/users/NiteshKant/following{/other_user}","gists_url":"https://api.github.com/users/NiteshKant/gists{/gist_id}","starred_url":"https://api.github.com/users/NiteshKant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiteshKant/subscriptions","organizations_url":"https://api.github.com/users/NiteshKant/orgs","repos_url":"https://api.github.com/users/NiteshKant/repos","events_url":"https://api.github.com/users/NiteshKant/events{/privacy}","received_events_url":"https://api.github.com/users/NiteshKant/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T19:27:56Z","updated_at":"2015-01-21T19:27:56Z","body":"Thanks @chen56 for reporting the issue, will look at it."}}