[Info-vax] Potential loss of data problem in sftp client in TCP/IP Services ?
JF Mezei
jfmezei.spamnot at vaxination.ca
Tue Mar 13 03:58:14 EDT 2012
The big question is whether the sftp protocol requires a file size be
sent at the start of transmission, or whether it can send data until end
of file is reached and then indicate "got to EOF" to the remote server.
Consider the following snipped of pseudo code:
mysize = filesize("myfile.txt")
x = 0
while (x < mysize)
{ read_byte("myfile.txt")
write_byte("network_link")
x ++ ;
}
In the above case, if the filesize has been underestimated, then the
loop would end before the end of file has been reached.
The problem with having a bunch of newbies maintain VMS is that one is
never sure if they truly understand the intricacies of the file system
and how the C RTL interacts with RMS and how conversions are done on the
fly by the C RTL. They already showed their lack of knowledge wit the
DIR command bug about directory files.
More information about the Info-vax
mailing list