Re: Canceling Ado Connection

From: alex (alex.smotritsky_at_verizon.net)
Date: 05/30/04


Date: Sun, 30 May 2004 17:34:12 -0400


"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

  • Re: WNetAddConnection2 to connect computer root
    ... I first attempt to cancel any current ... connection open, ... attempt to access the machine using WNetOpenEnum as above. ... username/password. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Socket Conection
    ... a timeout mechanism which will terminate the ... >socket command if the connection has not been established within a set ... If the connect happens before the after event, cancel ...
    (comp.lang.tcl)
  • Re: ADO.NET - Exception "Operation cancelled by user" -
    ... If I remove the call to cancel, (which is being called before every new ... the exception is never seen. ... EstablishNewConnection and command associated with connection. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Timeout for connect()
    ... Don't I run the risk of some kind of leak? ... socket that hasn't been opened? ... >> connection context and not create a new one? ... so I wanted to be able to cancel the connect ...
    (comp.unix.programmer)
  • Re: Re connect
    ... before re connection was due I called and canceled the order it turned ... Last time I checked res customers could cancel the order with no charges up ...
    (uk.telecom)