Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: problem in function TIdSimpleServer.Listen: Boolean;

www.cryer.info
Managed Newsgroup Archive

Re: problem in function TIdSimpleServer.Listen: Boolean;

Subject:Re: problem in function TIdSimpleServer.Listen: Boolean;
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 24 Aug 2006 10:12:46

"rodolfor" <rodolfor@euristica.com> wrote in message
news:44ed679c@newsgroups.borland.com...

> If I have a lot of file, sometimes the ftp component freeze.
> In particular I have noted thant the software is blocked in
> the function TIdListenServer.Listen where it cycle infinitely
> this loop:
<snip>
> because result is always false and FAbortedRequested is
> always false.

The only way Select() can keep returning False is if no connection is ever
being established.  That suggests that one of the connections is likely
being blocked, such as by a firewall or router.

>         while (FAbortedRequested = False) and (Result = False) do begin
>           Result := Select(AcceptWait);

You are using an older snapshot.  That codes does not exist anymore in the
current snapshot.  An ATimeout parameter has already been added to Listen(),
and a new ListenTimeout property has been added to TIdFTP as well.

> Do you have sone workaround ?

Upgrade to a newer snapshot.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive