Article View: borland.public.cppbuilder.internet.web
Article #1731Re: Uploading content of a folder - read timeout error - source code required...
From: Nicolae Fieraru
Date: Fri, 16 Jul 2004 01:08
Date: Fri, 16 Jul 2004 01:08
27 lines
2284 bytes
2284 bytes
So are you saying that no matter what SneBufferSize I choose in IdFTP, the program will run in identical manner, therefore it is pointless to adjust the predefined value of 32768? "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:40f7220a$1@newsgroups.borland.com... > > "Nicolae Fieraru" <nospam@please.cxm> wrote in message > news:40f7177f$1@newsgroups.borland.com... > > > You described what happens when Indy receives a file, > > but isn't the problem different when sending a file? > > The buffer sizes should never matter. TCP guarantees data delivery (or > delivery errors) regardless of the data size, whether you are sending 10 > bytes or 1,000,000 bytes. The socket stack returns how many bytes were > actually accepted everytime send() is called, and then that many bytes are > guaranteed to be delivered. It is the caller's responsibility to adjust its > buffer sending accordingly. Indy does exactly that, regardless of the > buffer sizes used (chances are the socket can't except full buffers at a > time anyway). > > > Gambit > >
Technical Details
Message-ID:
<40f7295f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40f53800@newsgroups.borland.com> <40f566bf$1@newsgroups.borland.com> <40f61327@newsgroups.borland.com> <40f684fe$1@newsgroups.borland.com> <40f6a339@newsgroups.borland.com> <40f6a51a@newsgroups.borland.com> <40f6cbe5$1@newsgroups.borland.com> <40f7177f$1@newsgroups.borland.com> <40f7220a$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.cxm> 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> <40f6a339@newsgroups.borland.com> <40f6a51a@newsgroups.borland.com> <40f6cbe5$1@newsgroups.borland.com> <40f7177f$1@newsgroups.borland.com> <40f7220a$1@newsgroups.borland.com> Subject: Re: Uploading content of a folder - read timeout error - source code required... Date: Fri, 16 Jul 2004 11:08:10 +1000 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 150.101.207.70 Message-ID: <40f7295f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089939807 150.101.207.70 (15 Jul 2004 18:03:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail