You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.1 version.
The Azure Router Timeout
- An exception is thrown in RavenDB Client when accessing RavenDB Server. The exception was because of a socket timeout or general connection failure.
- Problem happens mainly on Azure hosted VMs
Azure's Load Balancer closes connections that are idle for more than 60 seconds.
We have to make sure that there are no connections that are idle for more than 60 seconds.
There are two possible ways to do that:
- Make sure that RavenDB is accessed at least once a minute (consider having a keep-alive message)
- Change the service point manager's MaxIdleTime value in your client application
RavenDB is using heartbeats in 3-10 second intervals on all its internal communication channels so they will be kept open.