๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#615
From: Miguel Gimenez
Date: Wed, 05 Dec 2007 09:07
22 lines
1868 bytes
Remy Lebeau (TeamB) escribi๏ฟฝ:
> "Miguel Gimenez" <me@privacy.net> wrote in message 
> news:4755e726$1@newsgroups.borland.com...
> 
>> - If I set Port to a working non POP port (80, for example)
> 
> The POP3 protocol defines a greeting command that the server is required to 
> send to the client upon initial connection.  TIdPOP3::Connect() waits for 
> that greeting to arrive.  Port 80, however, is an HTTP port, not a POP3 
> port.  The HTTP protocol has no greeting.  So Connect() establishes a 
> connection to a server but then ends up waiting for data that never arrives.
> 
>> Is there any way to avoid this?
> 
> Set the ReadTimeout property.  It is set to infinite by default.

I thought the timeout specified in the Connect() method was enough. Now 
it works properly, thanks again.

--
Best regards
Miguel Gimenez
Technical Details
Message-ID: <47566a3a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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>

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 10:07:06 +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>
In-Reply-To: <4755f289$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 88.12.198.244
Message-ID: <47566a3a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1196845626 88.12.198.244 (5 Dec 2007 01:07:06 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail