-->

Slow responses to TIdHTTP POSTs

2019-07-22 02:28发布

问题:

I am investigating a problem with a legacy executable, written in Delphi 5, utilising Indy 9.

Components in use: TIdHTTP, TIdConnectionIntercept & TIdSSLIOHandlerSocket.

The problem the app is presently experiencing is slow responses to TIdHTTP POSTs.

I found the following two links:

Delphi: Why does IdHTTP.ConnectTimeout make requests slower?

Delphi TIdHTTP POST is very slow vs GET

Based on the links, I have tried the suggestions of: (i) setting ConnectTimeout to zero and (ii) setting the HTTPOptions flag hoKeepOriginalProtocol, however behaviour remains the same.

SSL is in use, with no TIdAntiFreeze in use.

I have also tried using a test executable written in C# utilising .NET ServicePoint and ClientBase (using DNS name rather than IP address,as suggested in one of the above links), with no lag whatsoever.

Is there anything further I can check/try? The above links refer to 'old' versions of Indy - what is the latest version I am able to implement within Delphi5?