Slow responses to TIdHTTP POSTs

旧时模样 提交于 2019-12-11 02:17:58

问题


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?

来源:https://stackoverflow.com/questions/17136585/slow-responses-to-tidhttp-posts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!