🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1820

Re: Uploading content of a folder - read timeout error - source code required...

#1820
From: Nicolae Fieraru
Date: Thu, 15 Jul 2004 15:31
62 lines
2677 bytes
Dear Hans,

Thank you for indicating me what to look for.
I did what you and Mark told me and now I have a clearer idea about the
point where the program fails.
The file is transferred completely, but for some reason, the message about
finishing transferring the file is never received and the IdFTP->Put() never
returns to the function which called it.

Here is a copy of the messages I display in the memo:

---------------------
Uploading 04.JPG
AStatus: 6
Status: Starting FTP transfer
Work Begin:1
On Work:16384
On Work:32768
On Work:49152
On Work:55767
Word ended
AStatus: 7
Status: Transfer complete
Finished uploading 04.JPG  <---------------------------- This line is
printed just after IdFTP->Put()
---------------------
Uploading 05.JPG
AStatus: 6
Status: Starting FTP transfer
Work Begin:1
On Work:16384
On Work:32768
On Work:49152
On Work:63140            <---- this is the real size of my jpg file,
transfer was OK
Word ended
AStatus: 7
Status: Transfer complete  <----- Although the transfer is completed, the
IdFTP->Put() doesn't return
                                        // anymore in the function which
called it. What it is waiting for, because the WorkEnd
//event has been triggered?

Regards,
Nicolae




"Hans Galema" <dontusethis@dontusethis.nl> wrote in message
news:40f684fe$1@newsgroups.borland.com...
> Nicolae Fieraru wrote:
> > I
> > notice that when it times out, the last message in the Memo is "Status".
>
> As Mark already pointed out: you should Add() AStatusText.
>
> What does it say ?
>
> And what kind of info can be extracted from const TIdStatus AStatus ?
>
> Hans.
Technical Details
Message-ID: <40f6a339@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40f53800@newsgroups.borland.com> <40f566bf$1@newsgroups.borland.com> <40f61327@newsgroups.borland.com> <40f684fe$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f0221a83e98ee596
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Nicolae Fieraru" <nospam@please.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <40f53800@newsgroups.borland.com> <40f566bf$1@newsgroups.borland.com> <40f61327@newsgroups.borland.com> <40f684fe$1@newsgroups.borland.com>
Subject: Re: Uploading content of a folder - read timeout error - source code required...
Date: Fri, 16 Jul 2004 01:31:00 +1000
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 203.122.213.16
Message-ID: <40f6a339@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089905465 203.122.213.16 (15 Jul 2004 08:31:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail