From: christkv <chris...@gmail.com>
Date: Tue, 25 Sep 2012 06:58:54 -0700 (PDT)
Local: Tues, Sep 25 2012 9:58 am
Subject: Re: connection lost in azure websites
A good place to start is the docs
http://mongodb.github.com/node-mongodb-native/markdown-docs/database....
new mongodb.Server(host, port, {socketOptions : {keepAlive: true}} )
When it comes to why it behaves differently on azure I don't know. On Tuesday, September 25, 2012 3:15:25 PM UTC+2, José F. Romaniello wrote:
> Hi Christian and thank you very much for your prompt response. I have few > 2012/9/25 Christian Kvalheim <chri...@gmail.com <javascript:>>
>> if there is no activity on a connection mongodb will close it after 10 > Why we cant reproduce this when running it locally or in a VM in the cloud?
>> http://christiankvalheim.com/post/32209721702/tcp-keepalive
>> set the keep alive settings on the driver and see if it helps. >> Auto reconnect means it will reconnect on the next operation not that the > You mention insert/update, but is this still valid for queries > and the last question is what is the syntax for seting the keepAlive?, I > new mongodb.Server(host, port, {keepAlive: true} )
> thanks again!
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||