Re: Canceling Ado Connection
From: rc (rc_at_rc.com)
Date: 05/31/04
- Next message: Kovalenko Dmitry: "ANN: IBProvider 2.4 [OLEDB for Interbase/Firebird]"
- Previous message: andre: "ADO doesn't work with javascript"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 May 2004 14:49:18 GMT
Alex,
Thanks for the info; however, I am aware of this property. My situation is
different in that it involves, the amount of time it takes to determine that
a connection cannot be established because the network cable is unplugged.
It takes in excess of the value specified by the ADO::Connection.TimeOut
property.
I know that this is related to Name resoultion. I have created a timer that
I use to make sure that the amount time spent trying to establish the
connection does not exceed the connection.timeout + some user-defined-value.
This works perfectly, yet when I go to cancel the asynchronous connection, a
significant delay is added back into the equation.
"alex" <alex.smotritsky@verizon.net> wrote in message
news:40ba5384$1_2@127.0.0.1...
>
> "rc" <rc@rc.com> wrote in message
> news:BCItc.28693$zO3.13019@newsread2.news.atl.earthlink.net...
> > All,
> > I have an asynchronous ado connection. I would like to cancel this
> > connection after a timeout. The code that I have written works
perfectly
> > except that it takes a long time (36 seconds) to cancel the connection.
> For
> > my situation this is unacceptable. Can anyone tell me why it takes so
> long
> > to cancel a connection?
> >
> > Thanks
> >
> > Ronald
> >
> >
>
> one of the microsoft c++ examples for connecting with ado sets a
connection
> timeout property, i think that's what you need if i understand correctly,
i
> know that property can be set with vb/vbscript... as well.
>
>
>
>
>
>
>
> ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==----
> http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000
Newsgroups
> ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
- Next message: Kovalenko Dmitry: "ANN: IBProvider 2.4 [OLEDB for Interbase/Firebird]"
- Previous message: andre: "ADO doesn't work with javascript"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|