mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 03:41:07 +02:00
* 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:
parent
8efae66956
commit
54e418c5e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user