๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdPOP3->Connect() doesn't return

#618
From: Miguel Gimenez
Date: Wed, 05 Dec 2007 20:34
63 lines
2692 bytes
Remy Lebeau (TeamB) escribi๏ฟฝ:
> "Miguel Gimenez" <me@privacy.net> wrote in message 
> news:47566e9d$1@newsgroups.borland.com...
> 
>> I thought that the Connect() timeout was enough
> 
> No, because this is not a connection issue, it is a data reading issue. 
> There are separate timeouts for those issues.
> 
>> The SSL part still hangs, I've been looking for timeouts
>> in this component to no avail.
> 
> There aren't any.  What is our EXACT setup when using TIdPOP3 with SSL?

IdPOP31:
APOP = false
ASCIIFilter = false
BoundIP = ""
BoundPort = 0
Host = "pop.solener.com"
Intercept = ""
IOHandler = UseSSL ? IdSSLIOHandlerSocket1 : NULL
MaxLineAction = maSplit
MaxLineLength = 16384
Name = "IdPOP31"
Password = "password"
Port = 110
ReadTimeout = 6000
RecvBufferSize = 32768
SendBufferSize = 32768
Tag = 0
Username = "username"

IdSSLIOHandlerSocket1:
Name = "IdSSLIOHandlerSocket1"
SocksInfo = ""
SSLOptions
   CertFile = ""
   CipherList = ""
   KeyFile = ""
   Method = sslvSSLv2
   Mode = sslmUnassigned
   RootCertFile = ""
   VerifyDepth = 0
   VerifyDirs = 0
   VerifyMode = []
Tag = 0
UseNagle = true

The program works fine with "normal servers" (port 110, no SSL) and 
Gmail (port 995, SSL).

If I set no SSL for a Gmail server I get an EIdReadTimeout exception, as 
expected.

If I set SSL for a non-SSL server, the applications hangs on 
IdPOP31->Connect().

I'm using the OpenSSL library pair from the Indy page. Maybe one of 
these libraries who halts waiting for a valid SSL packet.

Best regards
Miguel Gimenez
Technical Details
Message-ID: <47570b43@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4755e726$1@newsgroups.borland.com> <4755f289$1@newsgroups.borland.com> <47566e9d$1@newsgroups.borland.com> <4756e759$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f3c9ec3e5e88263
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII
Date: Wed, 05 Dec 2007 21:34:11 +0100
From: Miguel Gimenez <me@privacy.net>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TIdPOP3->Connect() doesn't return
References: <4755e726$1@newsgroups.borland.com> <4755f289$1@newsgroups.borland.com> <47566e9d$1@newsgroups.borland.com> <4756e759$1@newsgroups.borland.com>
In-Reply-To: <4756e759$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 81.44.215.225
Message-ID: <47570b43@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1196886851 81.44.215.225 (5 Dec 2007 12:34:11 -0700)
Lines: 63
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail