Board index » delphi » FTP Server ShareExclusive

FTP Server ShareExclusive


2004-08-04 11:32:54 PM
delphi180
Hi all,
Some client applications send files updates to a FTP server. This server
periodicaly check if new files are available and manage them.
Obviously, it sometimes has concurent access to a file (FTP upload and local
managment).
My problem is that local access are sometimes granted even if the file is
not full uploaded...
The result is always an empty file of 32768 bytes (The default
SendBufferSize of the idFTP... set in CommandSSAP)
An AccessViolation is raised.
Of course the VStream in OnStoreFile is created using smShareExclusive
This problem is sporadic and then very difficult to figure out. But my
thought goes to a connection drop and the AccessViolation raised from the
PeerThread aborting the procedure and leaving the empty file as is...
(Using Indy shipped with Delphi 7)
Any tips
TIA
Koj
 
 

Re:FTP Server ShareExclusive

update your indy to the newest version from there homepage.
"Koj" <XXXX@XXXXX.COM>schrieb im Newsbeitrag
Quote
Hi all,

Some client applications send files updates to a FTP server. This server
periodicaly check if new files are available and manage them.

Obviously, it sometimes has concurent access to a file (FTP upload and
local
managment).

My problem is that local access are sometimes granted even if the file is
not full uploaded...
The result is always an empty file of 32768 bytes (The default
SendBufferSize of the idFTP... set in CommandSSAP)
An AccessViolation is raised.

Of course the VStream in OnStoreFile is created using smShareExclusive

This problem is sporadic and then very difficult to figure out. But my
thought goes to a connection drop and the AccessViolation raised from the
PeerThread aborting the procedure and leaving the empty file as is...

(Using Indy shipped with Delphi 7)

Any tips

TIA

Koj