EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Terminate an asynchronous connection using a timeout

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 (Team)

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



Topic viewed 1063 times

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


Back to top

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

Got it!