> I wouldlike to implement retries on HTTPCLI but so it would wait some > time before retrying... Sleep doesnt seems to be the right choice > because it ruins GetAsync... Any way to make a async sleep for > getasync?
You never "wait" with ICS since it is asynchronous. You can implement retries using a timer. When you start your request (for example your GetAsync), you start a timer. When the request is done (OnRequestDone), you clear the timer. If your timer event triggers, then you have a timeout and need to retry. You then call Abort to stop the current request and then restart the whole thing. Don't forget to count the number of retries to avoid infinite retrying... -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be