Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Indy TIdHTTP POSTs getting slow responses

Posted on 2013-06-19
6
Medium Priority
?
1,183 Views
Last Modified: 2013-07-04
I am having a problem with a Delphi 5 app, utilising first Indy 9, and then Indy 10.

Components in use (Indy 9):
TIdHTTP, TIdConnectionIntercept & TIdSSLIOHandlerSocket.
Components in use (Indy 10):
TIdHTTP, TIdConnectionIntercept & TIdSSLIOHanlderSocketOpenSSL.
(SSL is in use, with no TIdAntiFreeze in use)

The problem the app is presently experiencing is slow responses (between 3 and 25 seconds) to TIdHTTP POSTs.

Based on assorted links, I have tried:
- setting ConnectTimeout to zero
- setting the HTTPOptions flag hoKeepOriginalProtocol
- upgraded from 9 to 10 (10.5.8 XE2)

As a test, I also tried using a test executable written in C# (HttpWebRequest), which gets split-second response times.

Is there anything else I can try with Indy 9/10 config?
0
Comment
Question by:brenlex
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:lomo74
ID: 39261720
off the top of my head, it could be a certificate verification issue.
try disabling SSL, just to test if it makes any difference.
0
 

Author Comment

by:brenlex
ID: 39262029
Not possible. Customer won't allow it.
0
 
LVL 8

Expert Comment

by:lomo74
ID: 39262150
I didn't mean to disable SSL permanently or in the final product.
I meant to disable it temporarily, only to test if something changes.
If nothing changes, you have to look elsewhere.
If something changes, you'll know what to focus on.

Alternatively, you can use Wireshark to track the connection and see where's the bottleneck.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:brenlex
ID: 39264747
I understand -- it would be easier to diagnose. Unfortunately the equipment to which I am attaching is only accessible via HTTPS -- out of my control.

I don't think Wireshark would work with SSL in place.
0
 
LVL 8

Accepted Solution

by:
lomo74 earned 1500 total points
ID: 39265016
What about stunnel + wireshark.
0
 

Author Closing Comment

by:brenlex
ID: 39299787
In the end I just rewrote the app in C# - now no issues with speed. Have some points for the heads-up on stunnel -- handy one for next time.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Imagine a situation that you have installed SSL (http://en.wikipedia.org/wiki/Secure_Sockets_Layer) Certificate on your Cisco ASA (Cisco Adaptive Security Appliance) firewall. Installation of SSL certificate on ASA is an another topic for which you …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question