* fphttpclient: add new OnIdle event to keep the client responsive in case the server needs a lot of time to respond (and to be able to terminate the request while waiting for data)

This commit is contained in:
Ondrej Pokorny 2021-08-29 13:33:39 +02:00 committed by Michaël Van Canneyt
parent 8efae66956
commit 54e418c5e8

View File

@ -716,7 +716,6 @@ begin
if (IOTimeout>0) and (CompareDateTime(NowUTC, BreakUTC)>0) then // we exceeded the timeout -> read error
Raise EHTTPClientSocketRead.Create(SErrReadingSocket);
end;
if FSocket.LastError<>0 then
Raise EHTTPClientSocketRead.Create(SErrReadingSocket);
end;