EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Terminate an asynchronous connection using a timeout

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
Posted: 09/24/2010 10:10:35
by Shaun OM (Standard support level)
Joined: 08/10/2010
Posts: 12

Using ElClientSSLSocket I call beginConnect.
If there is a problem with the server accepting the connection then this can take a long time to return.
I want to timeout my connection attempt after 10 seconds (and I'll try again later).

How should I terminate the connection activity.

Note: I have tried calling the CloseSocket method but this can still take nearly a minute before the ConnectCallback event fires.

Posted: 09/24/2010 11:09:22
by Ken Ivanov (EldoS Corp.)

Hmm, the CloseSocket() method actually should work. Will re-check this under .NET CF now.



Topic viewed 1031 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!