SQL Server connection timeout - routing destination
I have a Rest API service running on Azure North Europe, and a SQL Server database running at the same place. My clients have a Win UI app (C#) which connects to the Rest API service. There are only a handful of clients so far (< 50) but they are all around the world. I am finding that two clients in particular are constantly experiencing problems whereby the API service tries to connect to the SQL service but is thwarted by timeout issues.
The numbers in the exception message indicates that my use of the default 20 timeout is insufficient so I have just raised it to 60, but remembering that the REST API and the SQL are both in Dublin I would not expect to see such a lag. The error message is:
Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. This failure occurred while attempting to connect to the routing destination (my italics). The duration spent while attempting to connect to the original server was - [Pre-Login] initialization=46; handshake=18; [Login] initialization=0; authentication=0; [Post-Login] complete=1; The duration spent while attempting to connect to this server was - [Pre-Login] initialization=9; handshake=26; [Login] initialization=0; authentication=0; [Post-Login] complete=14057;
Does anybody have any observations on what I am seeing here?
My clients in Canada do not seem to have any problems. I have one person in Kent and one person in Essex who particularly have this problem, but other people (e.g. Oxford, Worcester, London) never seem to have the problem. I guess these could be red herrings but I mention them anyway.
Azure support: if you are reading this I have a session trace id of 66C5F868-D577-4576-AE51-C3A5C19793E7 for ya :-)
Many thanks all!