{"action":"closed","issue":{"url":"https://api.github.com/repos/balderdashy/sails-mongo/issues/276","labels_url":"https://api.github.com/repos/balderdashy/sails-mongo/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails-mongo/issues/276/comments","events_url":"https://api.github.com/repos/balderdashy/sails-mongo/issues/276/events","html_url":"https://github.com/balderdashy/sails-mongo/issues/276","id":74989554,"number":276,"title":"connection to mongo closed unexpectedly","user":{"login":"golojads","id":1164735,"avatar_url":"https://avatars.githubusercontent.com/u/1164735?v=3","gravatar_id":"","url":"https://api.github.com/users/golojads","html_url":"https://github.com/golojads","followers_url":"https://api.github.com/users/golojads/followers","following_url":"https://api.github.com/users/golojads/following{/other_user}","gists_url":"https://api.github.com/users/golojads/gists{/gist_id}","starred_url":"https://api.github.com/users/golojads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golojads/subscriptions","organizations_url":"https://api.github.com/users/golojads/orgs","repos_url":"https://api.github.com/users/golojads/repos","events_url":"https://api.github.com/users/golojads/events{/privacy}","received_events_url":"https://api.github.com/users/golojads/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-10T19:54:57Z","updated_at":"2015-05-21T00:50:32Z","closed_at":"2015-05-21T00:50:32Z","body":"Hi,\r\n\r\nMy Sails.js app using sail-mongo. If I start server and do not make any request to Mongo DB through one of my Sails.js services within 5 minutes then connection from Sails.js app towards Mongo is closed forever. After that any Ajax request to Sails.js that require connection to Mongo will hang in pending state. Sails.js app isn't throwing any exceptions.\r\n\r\n```Started Sails App ( actually 2 different Sails app)```\r\n...... do nothng for 5 minutes........\r\nbelow is log from Mongo process\r\n```2015-05-10T22:26:10.442+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:59150 #1814 (2 connections now open)\r\n2015-05-10T22:26:12.014+0300 I NETWORK  [conn1813] end connection 127.0.0.1:59149 (1 connection now open)\r\n2015-05-10T22:26:12.221+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:59151 #1815 (2 connections now open)\r\n2015-05-10T22:26:15.444+0300 I NETWORK  [conn1814] end connection 127.0.0.1:59150 (1 connection now open)\r\n2015-05-10T22:26:15.649+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:59153 #1816 (2 connections now open)\r\n2015-05-10T22:26:17.223+0300 I NETWORK  [conn1815] end connection 127.0.0.1:59151 (1 connection now open)\r\n2015-05-10T22:26:17.429+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:59154 #1817 (2 connections now open)\r\n2015-05-10T22:26:20.651+0300 I NETWORK  [conn1816] end connection 127.0.0.1:59153 (1 connection now open)\r\n2015-05-10T22:26:22.431+0300 I NETWORK  [conn1817] end connection 127.0.0.1:59154 (0 connections now open)```\r\n\r\nI'm relatively new to both Mongo and Sails.js, so don't know what can cause this. Obviously if I restart Sails.js app connection is up again for next 5 minutes of ideling.\r\n\r\nMongo v.3.0.2\r\nSails v.0.11.0\r\nsails-mongo v.0.11.1\r\nrunning Mongo and Sails on my local machine\r\nOS Yosemite 10.10.3\r\nNode v.0.12.2\r\n\r\nThank you for any assistance.\r\n"}}