Browse Source

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

Ondrej Pokorny 4 năm trước cách đây
mục cha
commit
54e418c5e8
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      packages/fcl-web/src/base/fphttpclient.pp

+ 0 - 1
packages/fcl-web/src/base/fphttpclient.pp

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