{"action":"created","issue":{"url":"https://api.github.com/repos/mattn/go-sqlite3/issues/236","labels_url":"https://api.github.com/repos/mattn/go-sqlite3/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/mattn/go-sqlite3/issues/236/comments","events_url":"https://api.github.com/repos/mattn/go-sqlite3/issues/236/events","html_url":"https://github.com/mattn/go-sqlite3/issues/236","id":105892439,"number":236,"title":"idle connections, open file descriptors","user":{"login":"gaillard","id":984510,"avatar_url":"https://avatars.githubusercontent.com/u/984510?v=3","gravatar_id":"","url":"https://api.github.com/users/gaillard","html_url":"https://github.com/gaillard","followers_url":"https://api.github.com/users/gaillard/followers","following_url":"https://api.github.com/users/gaillard/following{/other_user}","gists_url":"https://api.github.com/users/gaillard/gists{/gist_id}","starred_url":"https://api.github.com/users/gaillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaillard/subscriptions","organizations_url":"https://api.github.com/users/gaillard/orgs","repos_url":"https://api.github.com/users/gaillard/repos","events_url":"https://api.github.com/users/gaillard/events{/privacy}","received_events_url":"https://api.github.com/users/gaillard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T20:34:56Z","updated_at":"2015-09-11T02:23:09Z","closed_at":null,"body":"So I am using the library through the stdlib sql package. But I notice if I start up my application and get some prepared statements (live forever) and then make a bunch of concurrent queries (closing them and the rows as they are used), a lot of file descriptors are always left open.\r\nUsing SetMaxOpenConns() seems to limit the number, but they never shrink despite the value of SetMaxIdleConns(). Is that normal?"},"comment":{"url":"https://api.github.com/repos/mattn/go-sqlite3/issues/comments/139431649","html_url":"https://github.com/mattn/go-sqlite3/issues/236#issuecomment-139431649","issue_url":"https://api.github.com/repos/mattn/go-sqlite3/issues/236","id":139431649,"user":{"login":"gaillard","id":984510,"avatar_url":"https://avatars.githubusercontent.com/u/984510?v=3","gravatar_id":"","url":"https://api.github.com/users/gaillard","html_url":"https://github.com/gaillard","followers_url":"https://api.github.com/users/gaillard/followers","following_url":"https://api.github.com/users/gaillard/following{/other_user}","gists_url":"https://api.github.com/users/gaillard/gists{/gist_id}","starred_url":"https://api.github.com/users/gaillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaillard/subscriptions","organizations_url":"https://api.github.com/users/gaillard/orgs","repos_url":"https://api.github.com/users/gaillard/repos","events_url":"https://api.github.com/users/gaillard/events{/privacy}","received_events_url":"https://api.github.com/users/gaillard/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T02:23:09Z","updated_at":"2015-09-11T02:23:09Z","body":"In the sqlite.go I don't see cls set to true for a statement..? "}}