INDY_9 http client timeout fix, thanks Dimitrios Chr. Ioannidis.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4618 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa
2016-04-12 08:11:20 +00:00
parent 51a647988c
commit 68466d4ade

View File

@ -285,6 +285,14 @@ begin
then begin
FConnection.ProxyParams.BasicAuthentication := True;
end;
{$IFDEF INDY_9}
// In Indy 9 the TIdHTTP.ReadTimeout is used also
// for connect. So, we assign to ReadTimeout,
// first the FConnectTimeout before connecting for connect
// and after connect in the OnConnected method handler
// we assign the FReadTimeout for read.
FConnection.ReadTimeout := FConnectTimeout;
{$ENDIF}
FConnection.Post(Address,ARequest, AResponse);
end;