You've already forked lazarus-ccr
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user