Re: [twsocket] THttpCli RequestDone with no ErrCode and StatusCode = 0

2012-01-19 Thread Arno Garrels
Arno Garrels wrote: > {code} > procedure THttpCli.DoRequestSync(Rq : THttpRequest); > [..] > {* Jul 12, 2004 > WARNING: The component now doesn't consider 401 status >as a fatal error (no exception is triggered). This >required a change in the application code if it was us

[twsocket] THttpCli RequestDone with no ErrCode and StatusCode = 0

2012-01-19 Thread Arno Garrels
Most servers close connections after a short request timeout, that may happen even after a request has been successfully sent. Currently THttpCli doesn't handle this case properly, as there is no error passed to OnRequestDone and THttpCli.DoRequestSync() doesn't raise an exception which it should