🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1730
From: Remy Lebeau (TeamB)
Date: Fri, 16 Jul 2004 00:32
18 lines
1949 bytes
"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: <40f7220a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!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> <40f6a339@newsgroups.borland.com> <40f6a51a@newsgroups.borland.com> <40f6cbe5$1@newsgroups.borland.com> <40f7177f$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: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.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> <40f6a339@newsgroups.borland.com> <40f6a51a@newsgroups.borland.com> <40f6cbe5$1@newsgroups.borland.com> <40f7177f$1@newsgroups.borland.com>
Subject: Re: Uploading content of a folder - read timeout error - source code required...
Date: Thu, 15 Jul 2004 17:32:52 -0700
Lines: 20
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: 68.69.17.41
Message-ID: <40f7220a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089937930 68.69.17.41 (15 Jul 2004 17:32:10 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail