🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Access Violation when closing Indy9.0.18 while using SSL

#1170
From: Remy Lebeau (TeamB)
Date: Sat, 21 Apr 2007 00:35
24 lines
1690 bytes
"Robin Findley" <rfindley@usa.net> wrote in message
news:46294d55$1@newsgroups.borland.com...

> I use DisconnectSocket() in order to be able to abort the
> Connect() early if I need to.

Why not use the ConnectTimeout feature instead?

> I didn't want to set a timeout if I don't have to.

I was referring to the timeout on the ReadLn().  But Connect() has its
own timeout as well.  You could set that timeout and then call
Connect() in a loop, checking the Terminated property on each
iteration.

> It turned out that the AV was caused by DisconnectSocket()
> interrupting ReadLn()

Which is normal, though I wouldn't have expected an AV to occur, but a
normal Indy exception instead.


Gambit
Technical Details
Message-ID: <46295c6d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46292759$1@newsgroups.borland.com> <46292e7b$1@newsgroups.borland.com> <46294d55$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,60b8f7595401b170
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46292759$1@newsgroups.borland.com> <46292e7b$1@newsgroups.borland.com> <46294d55$1@newsgroups.borland.com>
Subject: Re: Access Violation when closing Indy9.0.18 while using SSL
Date: Fri, 20 Apr 2007 17:35:52 -0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.60.244
Message-ID: <46295c6d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1177115757 75.82.60.244 (20 Apr 2007 17:35:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail