🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy and SSL

#128
From: Remy Lebeau (TeamB)
Date: Wed, 28 May 2008 22:59
31 lines
2164 bytes
"Oleg Tiktinski" <oleg@sequoiars.com> wrote in message 
news:483dd3e1$1@newsgroups.borland.com...

> Well it did not help:

Yes, it does.  Pay closer attention to what you are looking at.

>   if not IdSSLOpenSSL.LoadOpenSLLibrary then begin

LoadOpenSSLLibrary() calls IdSSLOpenSSLHeaders::Load() internally to load 
the OpenSSL DLLs, but only does so once.  So LoadOpenSSLLibrary() can be 
called multiple times, and only the first time will delay.  Subsequent calls 
will exit immediately without doing anything.  LoadOpenSLLibrary() is a 
publically accessible function in the IdSSLOpenSSL unit, so call it anytime 
you want.

> So this line:
>
> IdSSLOpenSSL.LoadOpenSLLibrary takes lots of time to execute.

Only the first time it is called.

> I do that after IdSSLOpenSSLHeaders::Load();

That is your problem.  You are letting IdSSLOpenSSLHeaders::Load() get 
called multiple times.  Don't call it yourself at all anymore.  Call only 
IdSSLOpenSSL::LoadOpenSLLibrary() instead.


Gambit 
Technical Details
Message-ID: <483de3f3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.231.69.MISMATCH!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <483cc31b$1@newsgroups.borland.com> <483daa9d$1@newsgroups.borland.com> <483dcfae$1@newsgroups.borland.com> <483dd005$1@newsgroups.borland.com> <483dd3e1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a02f5e13cae23a18
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <483cc31b$1@newsgroups.borland.com> <483daa9d$1@newsgroups.borland.com> <483dcfae$1@newsgroups.borland.com> <483dd005$1@newsgroups.borland.com> <483dd3e1$1@newsgroups.borland.com>
Subject: Re: Indy and SSL
Date: Wed, 28 May 2008 15:59:12 -0700
Lines: 33
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <483de3f3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212015603 207.178.157.90 (28 May 2008 16:00:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.231.69.MISMATCH!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail