Canceling Ado Connection

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


Date: Fri, 28 May 2004 15:09:21 GMT

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



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: 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: 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: 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)