Re: [twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-29 Thread Arno Garrels
Steve Endicott wrote: > Keith - if the status happens following a location change, you might > look closely at how that's being handled. Yep, the status happens following a location change sometimes (first noticed with a HTTPS connection). Unfortunately the location change handling is still bugg

Re: [twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-29 Thread Steve Endicott
We've seen this response off and on for several years. We finally put in some code to recognize the situation and ignore the RequestDone. The "real" RequestDone shows up later. In our case, we see this following a 302 Object Moved response from the host. The spurious RequestDone occurs imme

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread DZ-Jay
Francois PIETTE wrote: You are forgetting to free the memory. See TCustomLineWSocket.Destroy about how to do it properly. Wait, something just occurred to me: FRcvdPtr is of type TWSocketData, which is an Array Of Bytes, i.e. a dynamic array. No, it is of type pointer when win32 is defined w

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread Francois PIETTE
You are forgetting to free the memory. See TCustomLineWSocket.Destroy about how to do it properly. Wait, something just occurred to me: FRcvdPtr is of type FRcvdPtr, which is an Array Of Bytes, i.e. a dynamic array. No, it is of type pointer when win32 is defined which is the case. -- franco

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread DZ-Jay
On Mar 29, 2010, at 00:50, Francois PIETTE wrote: > You are forgetting to free the memory. See TCustomLineWSocket.Destroy about > how to do it properly. Wait, something just occurred to me: FRcvdPtr is of type FRcvdPtr, which is an Array Of Bytes, i.e. a dynamic array. According to the Delphi

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread DZ-Jay
On Mar 29, 2010, at 03:39, Jon Robertson wrote: > I should have only included FRvcdCnt := 0; That will prevent > TriggerSessionClosed from calling TriggerDataAvailable, and allow > TCustomLineWSocket.Destroy to free the buffer, rather than having multiple > code snippets that free the buffer, wh

Re: [twsocket] InternalAbort causes OnDataAvailable

2010-03-29 Thread Jon Robertson
Thanks. As I mentioned earlier, it's been a while since I've spent any time in the ICS source. :( I should have only included FRvcdCnt := 0; That will prevent TriggerSessionClosed from calling TriggerDataAvailable, and allow TCustomLineWSocket.Destroy to free the buffer, rather than having mult