Hello Ronny,

> The problem is that the STATE is not ready after the abort

Do you also mean that OnRequestDone is "not" fired after Abort ? Because
normally this is the place to check if component is ready, and when it
is then take next action.

If this is the case then I assume state will be ready immediatly after
abort. So you can take the next action probably in a custom message
handler.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Saturday, February 25, 2006, 16:08, Ronny wrote:

> The problem is that the STATE is not ready after the abort, so when I use
> httpcli to grab another file after a 302, I would get an error. (http 
> component busy, I think).
> After an abort in such a case, is there anything that I have to do to make
> sure that the component is ready for the next use?
> (This only happens after a 302, anything else (200, 404, etc) works well.)
> -Ronny

> ----- Original Message ----- 
> From: "Francois PIETTE" <[EMAIL PROTECTED]>
> To: "ICS support mailing" <twsocket@elists.org>
> Sent: Saturday, February 25, 2006 3:59 AM
> Subject: Re: [twsocket] HttpCli problem


>>> After httpcli.abort is called, the statuscode is normally 404 if the
>>> statuscode before the call is 200.  The statuscode is 0 if the original
>>> statuscode is 302.  This is causing me problems (i.e. httpcli state is
>>> not
>>> ready after an abort is called if the statuscode was 302).  See example:
>>>
>>>  log.Lines.Add(inttostr(httpcli.StatusCode);
>>>  httpcli.abort;
>>>  log.Lines.Add(inttostr(httpcli.StatusCode);
>>>
>>> D7, ICS V6 beta V1.91
>>
>> StatusCode value is valid only when or after OnRequestDone has been
>> triggered.
>> Anyway, if you abort, you obviously know what you are doing. No need to
>> rely
>> on StatusCode.
>>
>> --
>> [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 


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