Re: ADO ConnectionTimeout taking 2.3s rather than 1.0s



Ian Boyd wrote:
Just to be sure we're on the same page: the ConnectionTimeout "clock"
starts when the network services find the database server on the
network and provides a handle to the connection object. From what
I've read, the developer has no control over how long the network
services take to find and deliver the handle to the database server.
How are you forcing the timeouts to occur for your testing? And how
are you determining the point at which to start timing the "Actual
Timeout" period?


i am starting the clock just before i call Connection.Open.

Then you are not truly timing the ConnectionTimeout: you are timing the
amount of time it takes for the Connection to acquire a "handle" to the
database server plus the time it takes the ConnectionTimeout to time
out. Again, there is no control over the first part.


Original question stands.

I have seen this question (or variations thereof) asked many times in
the last 10 years and I have never seen a different answer. If someone
can provide one (I am certainly not omiscient), I will certainly be
interested in reading it.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Wait event "SQL*Net more data to client" in wait class "Network"
    ... connection on 10 hang for about 10 secondes. ... The only difference between website and the vb6 app is the network ... The database server may cache a previously disconnected ... The firewall between the client and database (in the ...
    (comp.databases.oracle.server)
  • Re: Bridging VPN connection....
    ... on your network. ... which has a high-speed connection to the database. ... display/keyboard/mouse data has to cross the VPN link. ... > the database server accessable to the internet in order to give each ...
    (microsoft.public.windows.server.networking)
  • RE: -1803 Connection does not exist.
    ... -1803 Connection does not exist. ... but the application server was a Windows XP ... It turned out to be a network setting within windows. ... On the database server machine there is nothing in the ...
    (comp.databases.informix)
  • Re: Index Size, On Table, Off Table, Reindexing Online......
    ... -1803 Connection does not exist. ... but the application server was a Windows XP ... It turned out to be a network setting within windows. ... On the database server machine there is nothing in the ...
    (comp.databases.informix)
  • RE: Problems with Permissions
    ... And SBS server is only take ... the role of an internal server. ... they are all configured to connected to internal network. ... g. Run the Configure Email and Internet Connection Wizard on SBS server. ...
    (microsoft.public.windows.server.sbs)