🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7958

Re: Missing data from network writes (Win2K client and server)

#7958
From: Andrue Cope [TeamB]
Date: Thu, 09 Dec 2004 17:03
34 lines
2436 bytes
Well we progressed. After the success of FILE_FLAG_WRITE_THROUGH I
implemented code to test for file size not matching our expectation and
the problem has "gone away". "Absence of proof is not proof of absence"
and all that but tests suggest that:

  close file
  reopen file
  get file size

Ensures that no data is left off. It also doesn't matter whether
closing the file request a buffer flush first or not although we've
left that in.

I've done a lot of tests today and we do seem to achieved a fix. At
least we also know that if the fix isn't total we'll detect the issue
and be able to advise people to activate the write through method.

The moral of this seems to be that you can't trust Windows to write
data to a remote location. Coupled with the difficulty over what
provokes this (seems to be timing related - maybe even network traffic
related) and we have an uncertain resolution.

> (I cannot remember a disk which did not have 512 byte sectors other 
> than floppies which had power of two sub-multiples of that.)

Hard disks are normally 512 - but we've got that covered if we ever
need to look into it.

For now I'm tentatively assuming we've solved the problem. Either that
or we've made it extremely rare and detectable.
-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <41b8855f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41b6de1f$1@newsgroups.borland.com> <41b731e9$1@newsgroups.borland.com> <41b76c0b$1@newsgroups.borland.com> <41b8159d$1@newsgroups.borland.com> <41b87529$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,99122155c7605386
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: Missing data from network writes (Win2K client and server)
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41b6de1f$1@newsgroups.borland.com> <41b731e9$1@newsgroups.borland.com> <41b76c0b$1@newsgroups.borland.com> <41b8159d$1@newsgroups.borland.com> <41b87529$1@newsgroups.borland.com>
Date: Thu, 9 Dec 2004 17:03:11 +0000
User-Agent: XanaNews/1.16.5.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <41b8855f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102611807 217.207.223.34 (9 Dec 2004 09:03:27 -0800)
Lines: 34
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail