Re: Canceling Ado Connection

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: rc (rc_at_rc.com)
Date: 05/31/04


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
=---



Relevant Pages

  • since Bayles spectacular evolution
    ... infrastructure rarely welcomes Fred, it needs Aneyd instead. ... We limit the independent intervention. ... offenders now or Simon will once reckon them in connection with you. ... amount up to the intense mirror is the sofa that lands successfully. ...
    (sci.crypt)
  • Re: TIF.what is the optimum disk space to allow?
    ... Thankyou for the info,ive now reduced the amount to your suggestion. ... > However even for dial-up a setting of over 2 gb is vastly excessive. ... > With your broadband connection I would suggest that reduce the setting ... > Ron Martell Duncan B.C. Canada ...
    (microsoft.public.windowsxp.general)
  • Re: How do you grow a pineapple in non tropical areas?
    ... Enough bandwidth was already wasted in the original thread, and then again in the melons thread. ... Moving on to 1.5Mb or higher connection makes the download time pretty ... the amount of bandwidth and corresponding ...
    (Debian-User)
  • Re: Receive data from socket stream
    ... in a connection that you expect to remain open. ... But as I said in my first post, it's simple when you know the amount ... until the remote peer closes the connection. ... message body contains the "chunked" transfer-coding, ...
    (comp.lang.python)
  • Re: Timeout for connect()
    ... Because I would want to know the maximum amount of time connect ... >> write a handler for SIGALARM, but how does such a handler affect ... > will cause 'connect' to return before the connection completes or fails. ... complicated code involving a select? ...
    (comp.unix.programmer)