Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: Indy FTP
| Subject: | Re: Indy FTP |
| Posted by: | "Arnau Font" (afont@nospam_really_ipssoft.com) |
| Date: | Mon, 26 Mar 2007 10:12:51 |
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha escrit en el missatge dels
grups de discussió:46042501$1@newsgroups.borland.com...
>
> "Arnau Font" <afont@nospam_really_ipssoft.com> wrote in message
> news:46041815$1@newsgroups.borland.com...
>
>> if I download large files or the download goes very slow (about
>> 20 min of download), the thread hangs in that call (or looks like).
>
> It is supposed to. Indy is a blocking library. What you describe is
> by design.
Yes, I know that Indy is a blocking library. But what I mean is that the
thread is totally blocked, it doesn't get out, even if the transfer from the
server has ended.
>
>> If it goes fine, I get the success message in the eventLog, but,
>> sometimes (slow download, big files) I get no message
>
> That is because you are not logging anything during the actual
> transfer itself. You can use the OnWorkBegin, OnWork, and OnWorkEnd
> events for that.
Again, what I meant is that after the transfer ended, I don't get any
message. I suppose that the Get call finishes when there's an exception or
when the transfer is finished, but I get no message.
Thanks,
Arnau.