🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #291

C++B6 and Indy9.0.18 HTTP Client for ActiveX : initial connection time delay problem

#291
From: Alex
Date: Fri, 21 Mar 2008 01:02
65 lines
3270 bytes
Hello
I use C++B6 and Indy 9.0.18.

Strange..Please help me..

If I make *.exe program with IndyHTTP Client.

NFS = new TFileStream(Body,fmCreate);
INDYHTTP->Get(URL,NFS);
I got the response and get the file.



But same source in ActiveX with InHttp(Indy9.0.18)
Strange result is like below :

SSLHS Status hsConnecting - A connection is being opened : Connecting to. = 
1
Indy Status hsConnected - A connection has been made : Connected. = 8566 
<---------connection takes 8.5 sec....
Indy Connect = 8566
Indy WorkBegin = 8575
Indy AWorkMode = 8584
Indy AWorkMode = 8614
Indy WorkEnd = 8614
File HTTP GET  1-1.jpg = 8615 (14.3%)


Indy Status hsConnected - A connection has been made : Connected. = 8566
Only Connection takes 8.5sec over.. and that time IE is hanging...

And with SSL, At first time IE and ActiveX starts,


SSLHS Status hsConnecting - A connection is being opened : Connecting to. = 
2 (0.0%)
SSLHS StatusInfo SSL status: "before/connect initialization" = 8530 (0.9%) 
<------connection....
SSLHS StatusInfo SSL status: "before/connect initialization" = 8530 (0.9%)
SSLHS StatusInfo SSL status: "SSLv2 write client hello A" = 17655 (1.9%) 
<---- SSL initial Client Hello connection
SSLHS StatusInfo SSL status: "SSLv2 read server hello A" = 17661 (1.9%)
SSLHS StatusInfo SSL status: "SSLv2 write client master key A" = 17661 
(1.9%)
SSLHS StatusInfo SSL status: "SSLv2 client start encryption" = 17662 (1.9%)
SSLHS StatusInfo SSL status: "SSLv2 write client finished A" = 17662 (1.9%)
SSLHS StatusInfo SSL status: "SSLv2 read server verify A" = 17669 (1.9%)
SSLHS StatusInfo SSL status: "SSLv2 read server finished A" = 17674 (1.9%)
SSLHS StatusInfo SSL status: "SSL negotiation finished successfully" = 17674 
(1.9%)
SSLHS StatusInfo SSL status: "SSL negotiation finished successfully" = 17674 
(1.9%)
SSLHS StatusInfo Cipher: name = DES-CBC3-MD5; description = DES-CBC3-MD5 
SSLv2 Kx=RSA      Au=RSA  Enc=3DES(168) Mac=MD5
; bits = 168; version = SSLv2;  = 17674 (1.9%)

Only Connection takes long time..

At first time, It takes long time but after that, try other site or other 
files it is fast...

How to Solve it?
even if I used idAntiFreeze... But useless..

Help me..
Technical Details
Message-ID: <47e3093f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,19953c39e5ce6085,start
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Alex" <kjy@ifashion.or.kr>
From: "Alex" <kjy@ifashion.or.kr>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject:  C++B6 and Indy9.0.18 HTTP Client for ActiveX : initial connection time delay problem
Date: Fri, 21 Mar 2008 10:02:55 +0900
Lines: 68
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="ks_c_5601-1987";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 117.16.145.160
Message-ID: <47e3093f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1206061375 117.16.145.160 (20 Mar 2008 18:02:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail