summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Plasa <dplasa@gmail.com>2020-05-26 19:25:43 +0200
committerDaniel Plasa <dplasa@gmail.com>2020-05-26 19:25:43 +0200
commit7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d (patch)
tree5f84c3e19a2021a82aaf9e5a4478e0bf331edd5b
parentuse ESP.getMaxFreeBlockSize() / 2 as transfer buffer size for RETR (diff)
downloadFTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.tar
FTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.tar.gz
FTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.tar.bz2
FTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.tar.lz
FTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.tar.xz
FTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.tar.zst
FTPCLientServer-7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d.zip
-rw-r--r--espFtpServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/espFtpServer.cpp b/espFtpServer.cpp
index 5158243..96f7f3e 100644
--- a/espFtpServer.cpp
+++ b/espFtpServer.cpp
@@ -1092,6 +1092,7 @@ bool FtpServer::doStore()
FTP_DEBUG_MSG("Transfer %d bytes client->fs", navail);
navail = data.read(fileBuffer, navail);
file.write(fileBuffer, navail);
+ bytesTransfered += navail;
}
if (!data.connected() && (navail <= 0))