🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#614
From: Remy Lebeau (TeamB)
Date: Wed, 05 Dec 2007 00:34
18 lines
1677 bytes
"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.


Gambit
Technical Details
Message-ID: <4755f289$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f3c9ec3e5e88263
X-Google-Attributes: gid11508e,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: <4755e726$1@newsgroups.borland.com>
Subject: Re: TIdPOP3->Connect() doesn't return
Date: Tue, 4 Dec 2007 16:34:58 -0800
Lines: 20
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: <4755f289$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1196814985 207.178.157.90 (4 Dec 2007 16:36:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail