{"action":"created","issue":{"url":"https://api.github.com/repos/mysqljs/mysql/issues/962","repository_url":"https://api.github.com/repos/mysqljs/mysql","labels_url":"https://api.github.com/repos/mysqljs/mysql/issues/962/labels{/name}","comments_url":"https://api.github.com/repos/mysqljs/mysql/issues/962/comments","events_url":"https://api.github.com/repos/mysqljs/mysql/issues/962/events","html_url":"https://github.com/mysqljs/mysql/issues/962","id":52396262,"number":962,"title":"It would be good to add some idleTimeout to pool options","user":{"login":"dusmanija","id":10235478,"avatar_url":"https://avatars.githubusercontent.com/u/10235478?v=3","gravatar_id":"","url":"https://api.github.com/users/dusmanija","html_url":"https://github.com/dusmanija","followers_url":"https://api.github.com/users/dusmanija/followers","following_url":"https://api.github.com/users/dusmanija/following{/other_user}","gists_url":"https://api.github.com/users/dusmanija/gists{/gist_id}","starred_url":"https://api.github.com/users/dusmanija/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dusmanija/subscriptions","organizations_url":"https://api.github.com/users/dusmanija/orgs","repos_url":"https://api.github.com/users/dusmanija/repos","events_url":"https://api.github.com/users/dusmanija/events{/privacy}","received_events_url":"https://api.github.com/users/dusmanija/received_events","type":"User","site_admin":false},"labels":[{"id":71903,"url":"https://api.github.com/repos/mysqljs/mysql/labels/feature","name":"feature","color":"058aff","default":false},{"id":98347327,"url":"https://api.github.com/repos/mysqljs/mysql/labels/help%20wanted","name":"help wanted","color":"5319e7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2014-12-18T17:58:08Z","updated_at":"2016-12-05T08:16:22Z","closed_at":null,"body":"Hello,\n\nI am using this module for a long time but it lacks one failsafe element. My code for database functions became very big and it is hard to find where connection is not closed or if some errors happened before connection is closed that connection will stay idle and eventually when all are consumed from the pool the application hangs on database calls. It would be good to add some option like idelConnectionTimeout that will destroy a connection from a pool if it is idle for set time. This way pool will never stuck and will create fresh connections to replace those that hanged. Also if some mechanism could be made to auto close connection on end that would be great but i think that is not an option...\n"},"comment":{"url":"https://api.github.com/repos/mysqljs/mysql/issues/comments/264791930","html_url":"https://github.com/mysqljs/mysql/issues/962#issuecomment-264791930","issue_url":"https://api.github.com/repos/mysqljs/mysql/issues/962","id":264791930,"user":{"login":"akuma","id":237677,"avatar_url":"https://avatars.githubusercontent.com/u/237677?v=3","gravatar_id":"","url":"https://api.github.com/users/akuma","html_url":"https://github.com/akuma","followers_url":"https://api.github.com/users/akuma/followers","following_url":"https://api.github.com/users/akuma/following{/other_user}","gists_url":"https://api.github.com/users/akuma/gists{/gist_id}","starred_url":"https://api.github.com/users/akuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akuma/subscriptions","organizations_url":"https://api.github.com/users/akuma/orgs","repos_url":"https://api.github.com/users/akuma/repos","events_url":"https://api.github.com/users/akuma/events{/privacy}","received_events_url":"https://api.github.com/users/akuma/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T08:16:22Z","updated_at":"2016-12-05T08:16:22Z","body":"+1"}}
{"actor":{"display_login":"akuma"}}