> Ok but... i got 20 HTTPCli components working as multithreading...

With ICS, you don't need to use multithreading to have 20 HTTP components 
running in parrallel doing different things ! Use multithreading for your 
blocking processing, if any. It will be much easier to develop and debug.
If you think you need multithreading, please explain your reasons and I'll 
tell you if you are right or not.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be

----- Original Message ----- 
From: "Me" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Saturday, December 17, 2005 4:39 PM
Subject: Re: [twsocket] HTTPCLI GETASYNC and SLEEP?


>
> ---- Wiadomość Oryginalna ----
> Od: Francois PIETTE <[EMAIL PROTECTED]>
> Do: ICS support mailing <twsocket@elists.org>
> Data: Sat, 17 Dec 2005 16:25:56 +0100
> Temat: Re: [twsocket] HTTPCLI GETASYNC and SLEEP?
>
>>
>> > 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...
>>
>
> Ok but... i got 20 HTTPCli components working as multithreading...
>
> -- 
> 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 

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

Reply via email to