{"action":"created","issue":{"url":"https://api.github.com/repos/christkv/mongodb-core/issues/25","labels_url":"https://api.github.com/repos/christkv/mongodb-core/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/christkv/mongodb-core/issues/25/comments","events_url":"https://api.github.com/repos/christkv/mongodb-core/issues/25/events","html_url":"https://github.com/christkv/mongodb-core/issues/25","id":81366655,"number":25,"title":"[Question] Pool reconnection explain","user":{"login":"vaseker","id":1942271,"avatar_url":"https://avatars.githubusercontent.com/u/1942271?v=3","gravatar_id":"","url":"https://api.github.com/users/vaseker","html_url":"https://github.com/vaseker","followers_url":"https://api.github.com/users/vaseker/followers","following_url":"https://api.github.com/users/vaseker/following{/other_user}","gists_url":"https://api.github.com/users/vaseker/gists{/gist_id}","starred_url":"https://api.github.com/users/vaseker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaseker/subscriptions","organizations_url":"https://api.github.com/users/vaseker/orgs","repos_url":"https://api.github.com/users/vaseker/repos","events_url":"https://api.github.com/users/vaseker/events{/privacy}","received_events_url":"https://api.github.com/users/vaseker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T09:27:00Z","updated_at":"2015-05-27T09:33:23Z","closed_at":null,"body":"Hello!\r\nI have a question about pool reconnection:\r\n\r\nI've a heavy query to mongodb replicaset and defined (specially low) socketTimeoutMS. \r\nWhen query execution time reachs socketTimeoutMS, driver closes this pool instance. This is ok. But I cannot see reconnection executions. \r\n\r\nIf call query again, mongo-core debug says nothing at all.\r\n\r\nEven in this state mongo driver doesn't respond to connection lose. Just hangs.\r\n\r\nThere is connection options to MongoClient\r\n```js\r\nvar socketOptions = {\r\n    connectTimeoutMS: 10000,\r\n    socketTimeoutMS : 60000\r\n};\r\nvar mongoOptions = {\r\n    db: {\r\n        readPreference: 'secondaryPreferred',\r\n        native_parser: true\r\n    },\r\n    server: {\r\n        socketOptions: socketOptions\r\n    },\r\n    replSet: {\r\n        haInterval: 200,\r\n        secondaryAcceptableLatencyMS: 15,\r\n        socketOptions: socketOptions\r\n    }\r\n};\r\n```\r\n\r\nWith this options I'm expecting default `auto_reconnect: true`. What am i doing wrong?\r\n\r\nThank you.\r\n\r\n[I've shared trimmed debug log of this](https://yadi.sk/i/a3x5IcBogtvkZ)\r\n\r\nPS. Sorry for my English"},"comment":{"url":"https://api.github.com/repos/christkv/mongodb-core/issues/comments/105839116","html_url":"https://github.com/christkv/mongodb-core/issues/25#issuecomment-105839116","issue_url":"https://api.github.com/repos/christkv/mongodb-core/issues/25","id":105839116,"user":{"login":"christkv","id":5569,"avatar_url":"https://avatars.githubusercontent.com/u/5569?v=3","gravatar_id":"","url":"https://api.github.com/users/christkv","html_url":"https://github.com/christkv","followers_url":"https://api.github.com/users/christkv/followers","following_url":"https://api.github.com/users/christkv/following{/other_user}","gists_url":"https://api.github.com/users/christkv/gists{/gist_id}","starred_url":"https://api.github.com/users/christkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christkv/subscriptions","organizations_url":"https://api.github.com/users/christkv/orgs","repos_url":"https://api.github.com/users/christkv/repos","events_url":"https://api.github.com/users/christkv/events{/privacy}","received_events_url":"https://api.github.com/users/christkv/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T09:33:23Z","updated_at":"2015-05-27T09:33:23Z","body":"whatever was in you [STACKTRACE] probably caused an exception that killed the driver instance. have you considered a long sockettimeout and using maxTimeMS to set an upper boundary on your query instead, avoiding socket connection closures"}}