forked from Imagelibrary/rtems
It is invalid to issue a SIZE command once a data transfer is in progress. For reads we issue the SIZE command before the RETR command and get a snapshot of the file size. For writes the file size is initialized to zero and incremented for each write chunk.
Sources from application-level (as opposed to kernel-level) libraries.