{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3216","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3216/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3216/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3216/events","html_url":"https://github.com/sequelize/sequelize/issues/3216","id":58788617,"number":3216,"title":"close() not closing connections?","user":{"login":"ackerdev","id":2708892,"avatar_url":"https://avatars.githubusercontent.com/u/2708892?v=3","gravatar_id":"","url":"https://api.github.com/users/ackerdev","html_url":"https://github.com/ackerdev","followers_url":"https://api.github.com/users/ackerdev/followers","following_url":"https://api.github.com/users/ackerdev/following{/other_user}","gists_url":"https://api.github.com/users/ackerdev/gists{/gist_id}","starred_url":"https://api.github.com/users/ackerdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ackerdev/subscriptions","organizations_url":"https://api.github.com/users/ackerdev/orgs","repos_url":"https://api.github.com/users/ackerdev/repos","events_url":"https://api.github.com/users/ackerdev/events{/privacy}","received_events_url":"https://api.github.com/users/ackerdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-24T19:12:06Z","updated_at":"2015-03-25T01:26:35Z","closed_at":"2015-03-05T06:59:40Z","body":"It seems that Sequelize.prototype.close is not properly terminating all connections. This may be an MSSQL-dialect specific problem.\r\n\r\nWhen executing the following code, the node process does not exit automatically and a connection can be seen still open on the SQL Server.\r\n```js\r\nvar Sequelize = require('sequelize');\r\nvar sequelize = new Sequelize(/* ... */);\r\n\r\nsequelize.query('SELECT 1', { raw: true })\r\n  .then(function(results) {\r\n    /* do something with results */\r\n    sequelize.close();\r\n  });\r\n```\r\n\r\nVersion: 2.0.3\r\nDialect: MSSQL"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/85771254","html_url":"https://github.com/sequelize/sequelize/issues/3216#issuecomment-85771254","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3216","id":85771254,"user":{"login":"shernshiou","id":64935,"avatar_url":"https://avatars.githubusercontent.com/u/64935?v=3","gravatar_id":"","url":"https://api.github.com/users/shernshiou","html_url":"https://github.com/shernshiou","followers_url":"https://api.github.com/users/shernshiou/followers","following_url":"https://api.github.com/users/shernshiou/following{/other_user}","gists_url":"https://api.github.com/users/shernshiou/gists{/gist_id}","starred_url":"https://api.github.com/users/shernshiou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shernshiou/subscriptions","organizations_url":"https://api.github.com/users/shernshiou/orgs","repos_url":"https://api.github.com/users/shernshiou/repos","events_url":"https://api.github.com/users/shernshiou/events{/privacy}","received_events_url":"https://api.github.com/users/shernshiou/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T01:26:34Z","updated_at":"2015-03-25T01:26:34Z","body":"Thanks @janmeier @mickhansen . I am expecting it to close immediately after query like postgresql and sqlite counterparts. If thats the case, I will manually close it then. "}}