{"action":"created","issue":{"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/318","labels_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/318/comments","events_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/318/events","html_url":"https://github.com/mcavage/node-ldapjs/issues/318","id":114911068,"number":318,"title":"ECONNRESET errors when idling","user":{"login":"mrapczynski","id":258614,"avatar_url":"https://avatars.githubusercontent.com/u/258614?v=3","gravatar_id":"","url":"https://api.github.com/users/mrapczynski","html_url":"https://github.com/mrapczynski","followers_url":"https://api.github.com/users/mrapczynski/followers","following_url":"https://api.github.com/users/mrapczynski/following{/other_user}","gists_url":"https://api.github.com/users/mrapczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/mrapczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrapczynski/subscriptions","organizations_url":"https://api.github.com/users/mrapczynski/orgs","repos_url":"https://api.github.com/users/mrapczynski/repos","events_url":"https://api.github.com/users/mrapczynski/events{/privacy}","received_events_url":"https://api.github.com/users/mrapczynski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mcavage/node-ldapjs/labels/question","name":"question","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-03T21:12:04Z","updated_at":"2016-01-04T17:16:47Z","closed_at":null,"body":"I'm trying to figure out the source of the error below, or how to catch it properly and mitigate it. I am using LDAPJS as part of an identity management pipeline to move user accounts from our ERP into Active Directory (connected over TLS with a self-signed cert). There is often idle periods in the database where no events are being dispatched, and in turn LDAPJS raises these exceptions when I assume it has nothing to do.\r\n\r\n```\r\n12:20:54 bsis-0 Error: read ECONNRESET\r\n    at exports._errnoException (util.js:812:11)\r\n    at TLSWrap.onread (net.js:542:26)\r\n2015-11-03 12:20:54: App name:bsis id:0 exited with code 1\r\n12:20:54 PM2 App name:bsis id:0 exited with code 1\r\n2015-11-03 12:21:54: Starting execution sequence in -fork mode- for app name:bsis id:0\r\n12:21:54 PM2 Starting execution sequence in -fork mode- for app name:bsis id:0\r\n2015-11-03 12:21:54: App name:bsis id:0 online\r\n12:21:54 PM2 App name:bsis id:0 online\r\n12:21:54 bsis-0 WARNING: NODE_APP_INSTANCE value of '0' did not match any instance config file names.\r\n12:21:54 bsis-0 WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode\r\n12:37:54 bsis-0 Error: read ECONNRESET\r\n    at exports._errnoException (util.js:812:11)\r\n    at TLSWrap.onread (net.js:542:26)\r\n2015-11-03 12:37:54: App name:bsis id:0 exited with code 1\r\n12:37:54 PM2 App name:bsis id:0 exited with code 1\r\n2015-11-03 12:38:54: Starting execution sequence in -fork mode- for app name:bsis id:0\r\n12:38:54 PM2 Starting execution sequence in -fork mode- for app name:bsis id:0\r\n2015-11-03 12:38:54: App name:bsis id:0 online\r\n12:38:54 PM2 App name:bsis id:0 online\r\n12:38:54 bsis-0 WARNING: NODE_APP_INSTANCE value of '0' did not match any instance config file names.\r\n12:38:54 bsis-0 WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode\r\n12:54:55 bsis-0 Error: read ECONNRESET\r\n    at exports._errnoException (util.js:812:11)\r\n    at TLSWrap.onread (net.js:542:26)\r\n2015-11-03 12:54:55: App name:bsis id:0 exited with code 1\r\n12:54:55 PM2 App name:bsis id:0 exited with code 1\r\n```\r\n\r\nThey only show up because of my `process.on('uncaughtException')` handler which in turns logs the event and then auto-restarts the broker.\r\n\r\nIdeas?"},"comment":{"url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/comments/168739926","html_url":"https://github.com/mcavage/node-ldapjs/issues/318#issuecomment-168739926","issue_url":"https://api.github.com/repos/mcavage/node-ldapjs/issues/318","id":168739926,"user":{"login":"saigop","id":16423728,"avatar_url":"https://avatars.githubusercontent.com/u/16423728?v=3","gravatar_id":"","url":"https://api.github.com/users/saigop","html_url":"https://github.com/saigop","followers_url":"https://api.github.com/users/saigop/followers","following_url":"https://api.github.com/users/saigop/following{/other_user}","gists_url":"https://api.github.com/users/saigop/gists{/gist_id}","starred_url":"https://api.github.com/users/saigop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saigop/subscriptions","organizations_url":"https://api.github.com/users/saigop/orgs","repos_url":"https://api.github.com/users/saigop/repos","events_url":"https://api.github.com/users/saigop/events{/privacy}","received_events_url":"https://api.github.com/users/saigop/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T17:16:47Z","updated_at":"2016-01-04T17:16:47Z","body":"I have changed the LDAP idle timeout in AD, post that it looks fine, will keep monitoring. \r\n\r\nthanks. "}}